artofillusion.object
Interface FacetedMesh

All Superinterfaces:
Mesh
All Known Implementing Classes:
TriangleMesh

public interface FacetedMesh
extends Mesh

A FacetedMesh represents an object which is defined by a set of polygonal faces. Each face is defined by an ordered set of mesh vertices.


Field Summary
 
Fields inherited from interface artofillusion.object.Mesh
APPROXIMATING, INTERPOLATING, NO_SMOOTHING, SMOOTH_SHADING
 
Method Summary
 int getFaceCount()
          Get the number of faces in this mesh.
 int getFaceVertexCount(int face)
          Get the number of vertices in a particular face.
 int getFaceVertexIndex(int face, int vertex)
          Get the index of a particular vertex in a particular face.
 
Methods inherited from interface artofillusion.object.Mesh
copyObject, createMeshViewer, duplicate, getBounds, getNormals, getParameters, getParameterValues, getSkeleton, getVertexPositions, getVertices, setSkeleton, setVertexPositions
 

Method Detail

getFaceCount

int getFaceCount()
Get the number of faces in this mesh.


getFaceVertexCount

int getFaceVertexCount(int face)
Get the number of vertices in a particular face.

Parameters:
face - the index of the face

getFaceVertexIndex

int getFaceVertexIndex(int face,
                       int vertex)
Get the index of a particular vertex in a particular face.

Parameters:
face - the index of the face
vertex - the index of the vertex within the face (between 0 and getFaceVertexCount(face)-1 inclusive)
Returns:
the index of the corresponding vertex in the list returned by getVertices()


Copyright © 1999-2011 by Peter Eastman.