All Packages Class Hierarchy This Package Previous Next Index
Class jtr.Mesh
java.lang.Object
|
+----jtr.Mesh
- public class Mesh
- extends Object
The coarse-level mesh datastructure.
-
bottomedge
-
-
leftedge
-
-
rightedge
-
-
topedge
-
-
Mesh(int[], float[][])
-
Build structure of Faces and Vertices given VRML information
(IndexedFaceSet coordIndex and Coordinate3 point).
-
CatClark(int)
- Subdivide using Catmull-Clark, and build output data,
IndexedFaceSet-style, in divverts[level] and divfaces[level]
-
GetFace(int)
- Accessor to get nth face
-
GetMaxValence()
- Accessor for maximum vertex valence
-
GetSubFaces(int)
- Accessor to get face data for subdivided level #level in a
format suitable for inclusion in a VRML IndexedFaceSet.
-
GetSubVerts(int)
- Accessor to get vertex data for subdivided level #level in a
format suitable for inclusion in a VRML IndexedFaceSet.
-
GetVert(int)
- Accessor to get nth point
topedge
public static final int topedge
leftedge
public static final int leftedge
bottomedge
public static final int bottomedge
rightedge
public static final int rightedge
Mesh
public Mesh(int ci[],
float p[][]) throws BadInputMesh
- Build structure of Faces and Vertices given VRML information
(IndexedFaceSet coordIndex and Coordinate3 point).
- Parameters:
- ci - IndexedFaceSet's coordIndex (defines faces)
- p - Coordinate3's point (defines vertex locations)
- Throws: BadInputMesh
- thrown if mesh is not a valid
quadrilateral mesh
GetMaxValence
public int GetMaxValence()
- Accessor for maximum vertex valence
GetFace
public Face GetFace(int facenum)
- Accessor to get nth face
GetVert
public Vertex GetVert(int vertnum)
- Accessor to get nth point
CatClark
public void CatClark(int level)
- Subdivide using Catmull-Clark, and build output data,
IndexedFaceSet-style, in divverts[level] and divfaces[level]
GetSubFaces
public int[] GetSubFaces(int level)
- Accessor to get face data for subdivided level #level in a
format suitable for inclusion in a VRML IndexedFaceSet. Should
be called after BuildIFSData is called on that level.
- Parameters:
- level - level of subdivision
GetSubVerts
public float[][] GetSubVerts(int level)
- Accessor to get vertex data for subdivided level #level in a
format suitable for inclusion in a VRML IndexedFaceSet. Should
be called after BuildIFSData is called on that level.
- Parameters:
- level - level of subdivision
All Packages Class Hierarchy This Package Previous Next Index