Re: what is the max intersections of a trinagle and a 3d cube?




"Dave Eberly" <dNOSPAMeberly@xxxxxxxxxxxxxxx> wrote in message
news:bRIHh.27446$7g3.24700@xxxxxxxxxxxxxxx
"CliffMacgillivray" <nospam@xxxxxxxxxxxxxx> wrote in message
news:JAFHh.299$m%.230@xxxxxxxxxxxxxxx
I think this is related to a clipping problem...
Suppose a triangle intersects a 3d cube to create some polygon P.
What is the max/min number of vertices P can have?

Suppose the plane of the triangle intersects the cube so that
the intersection is a hexagon. Now sketch a picture of the
hexagon and the triangle. You can draw a triangle that
intersects all 6 edges of the hexagon and that contains
3 of the hexagon's vertices. The resulting intersection is
a polygon with 9 vertices.


this is one possible answer, assuming the OP was asking about a cube/plane
intersection (or that the triangle is larger than the cube).


then again, otherwise (clipping the triangle by the cube), one probably
can't have more vertices than this.

so, I guess, assuming any point of the triangle is inside the cube, the min
number of points is 3 (one needs at least a triangle to be a valid
intersection).

most cases, I suspect the likely result is quadrilateral or pentagonal.

more can occure (so, up to the possible max of 9), but I suspect this is
likely only in more obscure situations.

or something...


--
Dave Eberly
http://www.geometrictools.com




.



Relevant Pages

  • robust 3D triangle-triangle intersection test
    ... I wonder if there's any robust 3D triangle-triangle intersection predicate? ... It seems that the most widely used 3D triangle-triangle intersection routine is Tomas Moller's routine. ... For example, Moller's routine can correctly report the intersection for the above example based on certain epsilons, but will likely to fail on some other triangle pairs. ...
    (comp.graphics.algorithms)
  • Re: Families of Straight Lines
    ... Since every point of intersection ... Add the two diagonals; the ... the triangle case. ... If all intersection points are collinear then the configuration is ...
    (sci.math)
  • Ray-Triangle intersection, more details
    ... The tree dots are delimiting an invisible triangle "hovering" over the ... Intersection basically works, infact if you move the cursors in the ... var e1 = vec3.create; ...
    (comp.graphics.api.opengl)
  • Re: Special Pascal Line
    ... ABC is a scalene triangle. ... > Let U the intersection point of tangents in B and C ...
    (sci.math)
  • Re: Detecting mouse click on a particular triangle
    ... Given that this is terrain geometry, you should be able to optimize ... intersection testing to only search a limited portion of the geometry. ... intersection as the selected triangle without having to search further. ...
    (microsoft.public.win32.programmer.directx.graphics)