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.


Variable Index

 o bottomedge
 o leftedge
 o rightedge
 o topedge

Constructor Index

 o Mesh(int[], float[][])
Build structure of Faces and Vertices given VRML information (IndexedFaceSet coordIndex and Coordinate3 point).

Method Index

 o CatClark(int)
Subdivide using Catmull-Clark, and build output data, IndexedFaceSet-style, in divverts[level] and divfaces[level]
 o GetFace(int)
Accessor to get nth face
 o GetMaxValence()
Accessor for maximum vertex valence
 o GetSubFaces(int)
Accessor to get face data for subdivided level #level in a format suitable for inclusion in a VRML IndexedFaceSet.
 o GetSubVerts(int)
Accessor to get vertex data for subdivided level #level in a format suitable for inclusion in a VRML IndexedFaceSet.
 o GetVert(int)
Accessor to get nth point

Variables

 o topedge
 public static final int topedge
 o leftedge
 public static final int leftedge
 o bottomedge
 public static final int bottomedge
 o rightedge
 public static final int rightedge

Constructors

 o 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

Methods

 o GetMaxValence
 public int GetMaxValence()
Accessor for maximum vertex valence

 o GetFace
 public Face GetFace(int facenum)
Accessor to get nth face

 o GetVert
 public Vertex GetVert(int vertnum)
Accessor to get nth point

 o CatClark
 public void CatClark(int level)
Subdivide using Catmull-Clark, and build output data, IndexedFaceSet-style, in divverts[level] and divfaces[level]

 o 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
 o 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