artofillusion.object
Interface Mesh

All Known Subinterfaces:
FacetedMesh
All Known Implementing Classes:
Curve, SplineMesh, TriangleMesh, Tube

public interface Mesh

The Mesh interface represents an object which is defined by a set of control vertices.


Field Summary
static int APPROXIMATING
           
static int INTERPOLATING
           
static int NO_SMOOTHING
           
static int SMOOTH_SHADING
           
 
Method Summary
 void copyObject(Object3D obj)
          Copy all the properties of another object, to make this one identical to it.
 MeshViewer createMeshViewer(MeshEditController controller, RowContainer options)
          Get a MeshViewer which can be used for viewing this mesh.
 Object3D duplicate()
          Create a new object which is an exact duplicate of this one.
 BoundingBox getBounds()
          Get a bounding box for the mesh.
 Vec3[] getNormals()
          Get an array of normal vectors, one for each vertex.
 TextureParameter[] getParameters()
          Get an array of TextureParameters which are defined on this mesh.
 ParameterValue[] getParameterValues()
          Get the values of the TextureParameters which are defined on this mesh.
 Skeleton getSkeleton()
          Get the skeleton for the object.
 Vec3[] getVertexPositions()
          Get a list of the positions of all vertices which define the mesh.
 MeshVertex[] getVertices()
          Get the list of vertices which define the mesh.
 void setSkeleton(Skeleton s)
          Set the skeleton for the object.
 void setVertexPositions(Vec3[] v)
          Set the positions for all the vertices of the mesh.
 

Field Detail

NO_SMOOTHING

static final int NO_SMOOTHING
See Also:
Constant Field Values

SMOOTH_SHADING

static final int SMOOTH_SHADING
See Also:
Constant Field Values

INTERPOLATING

static final int INTERPOLATING
See Also:
Constant Field Values

APPROXIMATING

static final int APPROXIMATING
See Also:
Constant Field Values
Method Detail

getVertices

MeshVertex[] getVertices()
Get the list of vertices which define the mesh.


getVertexPositions

Vec3[] getVertexPositions()
Get a list of the positions of all vertices which define the mesh.


setVertexPositions

void setVertexPositions(Vec3[] v)
Set the positions for all the vertices of the mesh.


getBounds

BoundingBox getBounds()
Get a bounding box for the mesh.


getNormals

Vec3[] getNormals()
Get an array of normal vectors, one for each vertex.


getParameters

TextureParameter[] getParameters()
Get an array of TextureParameters which are defined on this mesh.


getParameterValues

ParameterValue[] getParameterValues()
Get the values of the TextureParameters which are defined on this mesh.


duplicate

Object3D duplicate()
Create a new object which is an exact duplicate of this one.


copyObject

void copyObject(Object3D obj)
Copy all the properties of another object, to make this one identical to it. If the two objects are of different classes, this will throw a ClassCastException.


getSkeleton

Skeleton getSkeleton()
Get the skeleton for the object. If it does not have one, this should return null.


setSkeleton

void setSkeleton(Skeleton s)
Set the skeleton for the object. If it cannot have a skeleton, this should do nothing.


createMeshViewer

MeshViewer createMeshViewer(MeshEditController controller,
                            RowContainer options)
Get a MeshViewer which can be used for viewing this mesh.



Copyright © 1999-2011 by Peter Eastman.