|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--unbboolean.bool.Face
Representation of a 3D face (triangle).
See:
D. H. Laidlaw, W. B. Trumbore, and J. F. Hughes.
"Constructive Solid Geometry for Polyhedral Objects"
SIGGRAPH Proceedings, 1986, p.161.
Field Summary | |
static int |
INSIDE
face status if it is inside a solid |
static int |
OPPOSITE
face status if it is coincident with a solid face with opposite orientation |
static int |
OUTSIDE
face status if it is outside a solid |
static int |
SAME
face status if it is coincident with a solid face |
static int |
UNKNOWN
face status if it is still unknown |
Vertex |
v1
first vertex |
Vertex |
v2
second vertex |
Vertex |
v3
third vertex |
Constructor Summary | |
Face(Vertex v1,
Vertex v2,
Vertex v3)
Constructs a face with unknown status. |
Method Summary | |
java.lang.Object |
clone()
Clones the face object |
boolean |
equals(java.lang.Object anObject)
Checks if a face is equal to another. |
double |
getArea()
Gets the face area |
Bound |
getBound()
Gets the face bound |
javax.vecmath.Vector3d |
getNormal()
Gets the face normal |
int |
getStatus()
Gets the face status |
void |
invert()
Invert face direction (normal direction) |
void |
rayTraceClassify(Object3D object)
Classifies the face based on the ray trace technique |
boolean |
simpleClassify()
Classifies the face if one of its vertices are classified as INSIDE or OUTSIDE |
java.lang.String |
toString()
Makes a string definition for the Face object |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Vertex v1
public Vertex v2
public Vertex v3
public static final int UNKNOWN
public static final int INSIDE
public static final int OUTSIDE
public static final int SAME
public static final int OPPOSITE
Constructor Detail |
public Face(Vertex v1, Vertex v2, Vertex v3)
v1
- a face vertexv2
- a face vertexv3
- a face vertexMethod Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
anObject
- the other face to be tested
public Bound getBound()
public javax.vecmath.Vector3d getNormal()
public int getStatus()
public double getArea()
public void invert()
public boolean simpleClassify()
public void rayTraceClassify(Object3D object)
object
- object3d used to compute the face status
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |