public class BSPTree
extends java.lang.Object
| Constructor and Description | 
|---|
| BSPTree() | 
| BSPTree(BSPTree tree) | 
| BSPTree(PolygonalMesh mesh) | 
| Modifier and Type | Method and Description | 
|---|---|
| Vertex3d | addToMap(Vertex3d vtx,
        java.util.HashMap<Vertex3d,Vertex3d> vtxMap,
        java.util.ArrayList<Vertex3d> vtxList,
        double tol) | 
| BSPTree | clone() | 
| static BSPTree | fromPolygons(java.util.ArrayList<maspack.geometry.BSPTree.Polygon> polygons) | 
| PolygonalMesh | generateMesh() | 
| PolygonalMesh | generateMesh(PolygonalMesh mesh) | 
| static PolygonalMesh | getIntersection(PolygonalMesh mesh1,
               PolygonalMesh mesh2) | 
| static PolygonalMesh | getSubtraction(PolygonalMesh mesh1,
              PolygonalMesh mesh2) | 
| static PolygonalMesh | getUnion(PolygonalMesh mesh1,
        PolygonalMesh mesh2) | 
| BSPTree | intersect(BSPTree csg) | 
| BSPTree | inverse() | 
| boolean | isEmpty() | 
| int | numPolygons() | 
| void | setFromMesh(PolygonalMesh mesh) | 
| BSPTree | subtract(BSPTree csg) | 
| BSPTree | union(BSPTree csg) | 
public BSPTree()
public BSPTree(PolygonalMesh mesh)
public BSPTree(BSPTree tree)
public void setFromMesh(PolygonalMesh mesh)
public PolygonalMesh generateMesh()
public Vertex3d addToMap(Vertex3d vtx, java.util.HashMap<Vertex3d,Vertex3d> vtxMap, java.util.ArrayList<Vertex3d> vtxList, double tol)
public PolygonalMesh generateMesh(PolygonalMesh mesh)
public int numPolygons()
public boolean isEmpty()
public BSPTree inverse()
public static BSPTree fromPolygons(java.util.ArrayList<maspack.geometry.BSPTree.Polygon> polygons)
public BSPTree clone()
clone in class java.lang.Objectpublic static PolygonalMesh getIntersection(PolygonalMesh mesh1, PolygonalMesh mesh2)
public static PolygonalMesh getUnion(PolygonalMesh mesh1, PolygonalMesh mesh2)
public static PolygonalMesh getSubtraction(PolygonalMesh mesh1, PolygonalMesh mesh2)