maspack.collision
Class SurfaceMeshIntersector

java.lang.Object
  extended by maspack.collision.SurfaceMeshIntersector

public class SurfaceMeshIntersector
extends java.lang.Object


Field Summary
 java.util.ArrayList<MeshIntersectionContour> contours
           
 PolygonalMesh mesh0
           
 PolygonalMesh mesh1
           
 java.util.LinkedHashSet<MeshContourPair> nestedContours
           
static long renderTime
           
 
Constructor Summary
SurfaceMeshIntersector()
           
 
Method Summary
 void combineNestedContours()
           
 HalfEdge edgeIntersectingFace(Face face, Face otherFace, MeshIntersectionContour contour)
           
 boolean findContours(PolygonalMesh mesh0, PolygonalMesh mesh1)
           
 boolean findIntersectionContours(Boundable[] elems0, Boundable[] elems1, boolean initialEdgeRegion)
           
 boolean robustIntersectionWithFace(HalfEdge he, Face face, MeshIntersectionPoint mip)
           
 void setDegenerate()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mesh0

public PolygonalMesh mesh0

mesh1

public PolygonalMesh mesh1

contours

public java.util.ArrayList<MeshIntersectionContour> contours

nestedContours

public java.util.LinkedHashSet<MeshContourPair> nestedContours

renderTime

public static long renderTime
Constructor Detail

SurfaceMeshIntersector

public SurfaceMeshIntersector()
Method Detail

findContours

public boolean findContours(PolygonalMesh mesh0,
                            PolygonalMesh mesh1)

findIntersectionContours

public boolean findIntersectionContours(Boundable[] elems0,
                                        Boundable[] elems1,
                                        boolean initialEdgeRegion)

combineNestedContours

public void combineNestedContours()

setDegenerate

public void setDegenerate()

edgeIntersectingFace

public HalfEdge edgeIntersectingFace(Face face,
                                     Face otherFace,
                                     MeshIntersectionContour contour)

robustIntersectionWithFace

public boolean robustIntersectionWithFace(HalfEdge he,
                                          Face face,
                                          MeshIntersectionPoint mip)