Is a Point Inside or Outside a Complex Shape Using the Odd-Even Rule?

  • Context: Undergrad 
  • Thread starter Thread starter sachinism
  • Start date Start date
  • Tags Tags
    Point
Click For Summary
SUMMARY

The discussion focuses on determining whether a point is inside or outside a complex shape using the Odd-Even Rule. It establishes that for a closed surface, a point is considered inside if a line drawn from that point to infinity intersects the surface an odd number of times. Conversely, if the line intersects the surface an even number of times, including zero, the point is outside the surface. This method is applicable regardless of the complexity of the shape, as long as it is a closed surface.

PREREQUISITES
  • Understanding of closed surfaces in three-dimensional space
  • Familiarity with geometric concepts of points and lines
  • Basic knowledge of intersection theory
  • Awareness of the Odd-Even Rule in computational geometry
NEXT STEPS
  • Research computational geometry algorithms for point-in-polygon tests
  • Explore advanced techniques for handling complex shapes in 3D modeling
  • Learn about ray-casting methods for point location in 3D spaces
  • Investigate the implementation of the Odd-Even Rule in programming languages like Python or C++
USEFUL FOR

This discussion is beneficial for computer graphics developers, computational geometers, and anyone involved in 3D modeling or spatial analysis who needs to determine point location relative to complex shapes.

sachinism
Messages
66
Reaction score
0
how do we tell whether a point is inside a given surface or outside a given surface?

p.s: the shape i am talking about is complicated and is not necessarily represented by a equation
 
Physics news on Phys.org
All of that will depend upon how you are "given" the surface and what you mean by "inside" and "outside". Are you assuming that this is a closed surface so that it separates three dimensional space into an "inside" and an "outside"? If so then the "outside" is the set that contains points "at infinity". No matter how complicated a closed surface is, you can always determine whether a point is "inside" or "outside" by looking at a line from that point to infinity. The point is inside the surface if and only if such a line crosses the surface in an odd number of points and is outside the surface if and only if it crosses the surface in an even number of points (which would include 0 points).
 
thx

the odd even rule helped
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
Replies
7
Views
4K
Replies
23
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
6
Views
3K