Class CSG

java.lang.Object
org.episteme.core.mathematics.geometry.csg.CSG

public class CSG extends Object
Constructive Solid Geometry (CSG) implementation.

Supports boolean operations on solid 3D meshes: Union, Subtract, Intersect. Uses BSP trees for processing.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • CSG

      public CSG()
  • Method Details

    • fromPolyhedron

      public static CSG fromPolyhedron(Polyhedron polyhedron)
      Converts a Polyhedron to a CSG object.
    • toPolyhedron

      public Polyhedron toPolyhedron()
      Converts this CSG object back to a Polyhedron.
    • union

      public CSG union(CSG other)
    • subtract

      public CSG subtract(CSG other)
    • intersect

      public CSG intersect(CSG other)
    • inverse

      public CSG inverse()
    • clone

      public CSG clone()
      Overrides:
      clone in class Object