Point inside a cube of irregular dimesnion

In summary, the conversation discusses finding a point inside an irregular cube without using volume. The suggestion is to look at a single line from the point to infinity and see if it crosses the figure's boundary an odd number of times. The issue of the cube's regularity is also brought up.
  • #1
parch
17
0
hi, Is there any way, to find a point whether it lies inside a irregular cube. other than finding volume. where cube can be rotated in any direction.
 
Physics news on Phys.org
  • #2
You don't mean "cube" here- all cubes are about as "regular" as you can get. But, anyway, one method of determining whether or not a point lies inside any given figure is to look at points on a single line, parallel to an axis if that helps, from the point to infinity. If that line crosses a boundary of the figure (an odd number of times) then the point is inside the figure.
 
  • #3
:biggrin: thanks i solved it...
 

Related to Point inside a cube of irregular dimesnion

1. How do you determine if a point is inside a cube of irregular dimension?

The most common method is to use the point-in-polygon algorithm which checks if a given point lies within a polygon or not. In this case, the cube is treated as a 3D polygon with 6 faces.

2. Can the cube have different dimensions for each side?

Yes, an irregular cube can have different dimensions for each side, as long as it has 6 faces and satisfies the definition of a cube - all 6 faces are square and perpendicular to each other.

3. Is there a mathematical formula to determine if a point is inside a cube of irregular dimension?

Yes, there is a formula based on the dot product of vectors. The dot product of the vector connecting the point to a vertex of the cube and the normal vector of a face should have the same sign for all faces if the point is inside the cube.

4. Can a point be on the surface of a cube and still be considered inside?

No, a point on the surface of a cube is considered to be outside of the cube. This is because the point-in-polygon algorithm only checks for points inside the boundaries of a shape, not on the boundaries.

5. Are there any special cases or exceptions when determining if a point is inside an irregular cube?

Yes, there are a few special cases such as when the point is exactly on a vertex or edge of the cube, or when the cube is skewed or tilted. In these cases, a more advanced algorithm may be needed to accurately determine if the point is inside the cube.

Similar threads

Replies
6
Views
2K
  • Introductory Physics Homework Help
Replies
22
Views
1K
Replies
11
Views
1K
Replies
2
Views
394
  • Quantum Physics
Replies
16
Views
1K
  • Linear and Abstract Algebra
Replies
3
Views
1K
  • General Discussion
Replies
1
Views
456
Replies
17
Views
1K
  • Introductory Physics Homework Help
Replies
20
Views
1K
  • Introductory Physics Homework Help
Replies
9
Views
2K
Back
Top