Package gov.nih.mipav.model.structures
Class ComputationalGeometry.GreinerHormann
java.lang.Object
gov.nih.mipav.model.structures.ComputationalGeometry.GreinerHormann
- Enclosing class:
ComputationalGeometry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidAddPolygonToList(ArrayList<ComputationalGeometry.ClipVertex> verticesToAdd, ArrayList<ArrayList<ComputationalGeometry.MyVector2>> finalPoly, boolean shouldReverse) ClipPolygons(ArrayList<ComputationalGeometry.MyVector2> polyVector2, ArrayList<ComputationalGeometry.MyVector2> clipPolyVector2, ComputationalGeometry.BooleanOperation booleanOperation) private voidprivate ComputationalGeometry.ClipVertexGetClippedPolygon(ArrayList<ComputationalGeometry.ClipVertex> poly, boolean getIntersectionPolygon) InitDataStructure(ArrayList<ComputationalGeometry.MyVector2> polyVector) private ComputationalGeometry.ClipVertexInsertIntersectionVertex(ComputationalGeometry.MyVector2 a, ComputationalGeometry.MyVector2 b, ComputationalGeometry.MyVector2 intersectionPoint, ComputationalGeometry.ClipVertex currentVertex) private voidprivate booleanIsPolygonInsidePolygon(ArrayList<ComputationalGeometry.MyVector2> polyOne, ArrayList<ComputationalGeometry.MyVector2> polyTwo) private voidMarkEntryExit(ArrayList<ComputationalGeometry.ClipVertex> poly, ArrayList<ComputationalGeometry.MyVector2> clipPolyVector) private void
-
Constructor Details
-
GreinerHormann
public GreinerHormann()
-
-
Method Details
-
ClipPolygons
public ArrayList<ArrayList<ComputationalGeometry.MyVector2>> ClipPolygons(ArrayList<ComputationalGeometry.MyVector2> polyVector2, ArrayList<ComputationalGeometry.MyVector2> clipPolyVector2, ComputationalGeometry.BooleanOperation booleanOperation) -
AddPolygonToList
private void AddPolygonToList(ArrayList<ComputationalGeometry.ClipVertex> verticesToAdd, ArrayList<ArrayList<ComputationalGeometry.MyVector2>> finalPoly, boolean shouldReverse) -
GetClippedPolygon
private ArrayList<ComputationalGeometry.ClipVertex> GetClippedPolygon(ArrayList<ComputationalGeometry.ClipVertex> poly, boolean getIntersectionPolygon) -
ResetVertices
-
IsPolygonInsidePolygon
private boolean IsPolygonInsidePolygon(ArrayList<ComputationalGeometry.MyVector2> polyOne, ArrayList<ComputationalGeometry.MyVector2> polyTwo) -
FindFirstEntryVertex
private ComputationalGeometry.ClipVertex FindFirstEntryVertex(ArrayList<ComputationalGeometry.ClipVertex> poly) -
InitDataStructure
private ArrayList<ComputationalGeometry.ClipVertex> InitDataStructure(ArrayList<ComputationalGeometry.MyVector2> polyVector) -
InsertIntersectionVertex
private ComputationalGeometry.ClipVertex InsertIntersectionVertex(ComputationalGeometry.MyVector2 a, ComputationalGeometry.MyVector2 b, ComputationalGeometry.MyVector2 intersectionPoint, ComputationalGeometry.ClipVertex currentVertex) -
MarkEntryExit
private void MarkEntryExit(ArrayList<ComputationalGeometry.ClipVertex> poly, ArrayList<ComputationalGeometry.MyVector2> clipPolyVector) -
DebugEntryExit
-
InWhichOrderAreVerticesAdded
-