|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.geometry.CSG
public class CSG
Constructive Solid Geometry tools
Constructor Summary | |
---|---|
CSG()
|
Method Summary | |
---|---|
static PolygonalMesh |
cheapIntersection(PolygonalMesh mesh1,
BVTree bvt1,
PolygonalMesh mesh2,
BVTree bvt2,
double tol,
int maxRayCasts,
PolygonalMesh out)
|
static PolygonalMesh |
cheapIntersection(PolygonalMesh mesh1,
PolygonalMesh mesh2,
double tol,
int maxRayCasts,
PolygonalMesh mesh)
"Cheap" in that the resulting mesh is not closed or manifold, currently for display purposes for debugging intersection |
static double |
computeDice(PolygonalMesh mesh1,
BVTree tree1,
PolygonalMesh mesh2,
BVTree tree2,
double tol,
int maxRayCasts)
Computes Dice coefficient between two meshes. |
double |
computeDice(PolygonalMesh mesh1,
PolygonalMesh mesh2)
Computes Dice coefficient between two meshes |
static double |
computeDice(PolygonalMesh mesh1,
PolygonalMesh mesh2,
double tol,
int maxRayCasts)
Computes Dice coefficient between two meshes. |
static double |
computeIntersectionVolume(PolygonalMesh mesh1,
BVTree tree1,
PolygonalMesh mesh2,
BVTree tree2,
double tol,
int maxRayCasts)
Computes the intersection volume contained by two meshes |
double |
computeIntersectionVolume(PolygonalMesh mesh1,
PolygonalMesh mesh2)
Computes the intersection volume between two meshes |
static double |
computeIntersectionVolume(PolygonalMesh mesh1,
PolygonalMesh mesh2,
double tol,
int maxRayCasts)
Computes the intersection volume contained by two meshes |
int |
getMaxRayCasts()
|
double |
getTolerance()
|
static void |
main(java.lang.String[] args)
|
void |
setMaxRayCasts(int max)
|
void |
setTolerance(double tol)
|
static void |
sliceMeshes(PolygonalMesh mesh1,
PolygonalMesh mesh2,
double tol,
int maxRayCasts,
PolygonalMesh outMesh1,
PolygonalMesh outMesh2)
Slices one mesh by the other, using a fast plane-cutting based technique Currently used for debugging intersection code |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSG()
Method Detail |
---|
public void setTolerance(double tol)
public double getTolerance()
public int getMaxRayCasts()
public void setMaxRayCasts(int max)
public static PolygonalMesh cheapIntersection(PolygonalMesh mesh1, PolygonalMesh mesh2, double tol, int maxRayCasts, PolygonalMesh mesh)
public static void sliceMeshes(PolygonalMesh mesh1, PolygonalMesh mesh2, double tol, int maxRayCasts, PolygonalMesh outMesh1, PolygonalMesh outMesh2)
public static PolygonalMesh cheapIntersection(PolygonalMesh mesh1, BVTree bvt1, PolygonalMesh mesh2, BVTree bvt2, double tol, int maxRayCasts, PolygonalMesh out)
public static double computeIntersectionVolume(PolygonalMesh mesh1, PolygonalMesh mesh2, double tol, int maxRayCasts)
public static double computeIntersectionVolume(PolygonalMesh mesh1, BVTree tree1, PolygonalMesh mesh2, BVTree tree2, double tol, int maxRayCasts)
public static double computeDice(PolygonalMesh mesh1, PolygonalMesh mesh2, double tol, int maxRayCasts)
public static double computeDice(PolygonalMesh mesh1, BVTree tree1, PolygonalMesh mesh2, BVTree tree2, double tol, int maxRayCasts)
public double computeIntersectionVolume(PolygonalMesh mesh1, PolygonalMesh mesh2)
public double computeDice(PolygonalMesh mesh1, PolygonalMesh mesh2)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |