|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--unbboolean.bool.Object3D
Data structure about a 3d solid to apply boolean operations in it.
Tipically, two 'Object3d' objects are created to apply boolean operation. The
methods splitFaces() and classifyFaces() are called in this sequence for both objects,
always using the other one as parameter. Then the faces from both objects are collected
according their status.
See:
D. H. Laidlaw, W. B. Trumbore, and J. F. Hughes.
"Constructive Solid Geometry for Polyhedral Objects"
SIGGRAPH Proceedings, 1986, p.161.
Constructor Summary | |
Object3D(Solid solid)
Constructs a Object3d object based on a solid file. |
Method Summary | |
void |
classifyFaces(Object3D object)
Classify faces as being inside, outside or on boundary of other object |
java.lang.Object |
clone()
Clones the Object3D object |
Bound |
getBound()
Gets the solid bound |
Face |
getFace(int index)
Gets a face reference for a given position |
int |
getNumFaces()
Gets the number of faces |
void |
invertInsideFaces()
Inverts faces classified as INSIDE, making its normals point outside. |
void |
splitFaces(Object3D object)
Split faces so that none face is intercepted by a face of other object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Object3D(Solid solid)
solid
- solid used to construct the Object3d objectMethod Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public int getNumFaces()
public Face getFace(int index)
index
- required face position
public Bound getBound()
public void splitFaces(Object3D object)
object
- the other object 3d used to make the splitpublic void classifyFaces(Object3D object)
object
- object 3d used for the comparisonpublic void invertInsideFaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |