Class CSGUtils
java.lang.Object
org.episteme.core.mathematics.geometry.csg.CSGUtils
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EPSILON
public static final double EPSILON- See Also:
-
COPLANAR
public static final int COPLANAR- See Also:
-
FRONT
public static final int FRONT- See Also:
-
BACK
public static final int BACK- See Also:
-
SPANNING
public static final int SPANNING- See Also:
-
-
Constructor Details
-
CSGUtils
public CSGUtils()
-
-
Method Details
-
splitPolygon
public static void splitPolygon(Plane3D plane, Polygon polygon, List<Polygon> coplanarFront, List<Polygon> coplanarBack, List<Polygon> front, List<Polygon> back) Splits a polygon by a plane.- Parameters:
plane- the splitting planepolygon- the polygon to splitcoplanarFront- list to populate with coplanar front polygonscoplanarBack- list to populate with coplanar back polygonsfront- list to populate with front polygonsback- list to populate with back polygons
-