All Packages Class Hierarchy This Package Previous Next Index
Class jtr.mesh.Face
java.lang.Object
|
+----jtr.mesh.Face
- public class Face
- extends Object
Coarse mesh face structure.
-
faces
- Adjacent faces.
-
thisface
- On
faces[i]
, this face is thisface[i]
.
-
verts
- Indices of our four vertices.
-
vrmlindex
- Face's index into an IndexedFaceSet.
-
Face(Mesh)
- Create a face.
-
CatClark(int)
- Perform Catmull-Clark subdivision on the stencil at level i,
based on the stencils at level i-1.
-
GetStencil(int)
- Get nth stencil.
verts
public int verts[]
- Indices of our four vertices.
faces
public int faces[]
- Adjacent faces.
thisface
public int thisface[]
- On
faces[i]
, this face is thisface[i]
.
vrmlindex
public int vrmlindex
- Face's index into an IndexedFaceSet.
Face
public Face(Mesh m_)
- Create a face. Does not initialize the stencil, as doing so
requires the vertex information to be in place.
GetStencil
public Stencil GetStencil(int level)
- Get nth stencil.
This is a lazy evaluation type of deal... it creates the nth
stencil only if it doesn't already exist.
- Parameters:
- level - level of stencil to return.
- Returns:
- the Face's stencil for the given level
CatClark
public void CatClark(int i)
- Perform Catmull-Clark subdivision on the stencil at level i,
based on the stencils at level i-1.
All Packages Class Hierarchy This Package Previous Next Index