|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.RenderingMesh
public class RenderingMesh
A RenderingMesh represents an object to be rendered to the screen. It is described by an array of RenderingTriangles, and arrays describing the positions, normals, and parameter values of the vertices. If any normal vector is null, then each triangle uses its own normal vector at the corresponding vertex.
Field Summary | |
---|---|
Vec3[] |
faceNorm
|
TextureMapping |
mapping
|
MaterialMapping |
matMapping
|
Vec3[] |
norm
|
ParameterValue[] |
param
|
RenderingTriangle[] |
triangle
|
Vec3[] |
vert
|
Constructor Summary | |
---|---|
RenderingMesh(Vec3[] vert,
Vec3[] norm,
RenderingTriangle[] triangle,
TextureMapping mapping,
MaterialMapping matMapping)
Construct a rendering mesh. |
Method Summary | |
---|---|
RenderingMesh |
clone()
Create a clone of this mesh. |
int[] |
getVertexIndices()
This method is used to accelerate interactive rendering with OpenGL. |
void |
setParameters(ParameterValue[] param)
Set the texture parameters for the mesh. |
void |
transformMesh(Mat4 trans)
Apply a coordinate transformation to all of the vertices and normal vectors in this mesh. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Vec3[] vert
public Vec3[] norm
public Vec3[] faceNorm
public ParameterValue[] param
public RenderingTriangle[] triangle
public TextureMapping mapping
public MaterialMapping matMapping
Constructor Detail |
---|
public RenderingMesh(Vec3[] vert, Vec3[] norm, RenderingTriangle[] triangle, TextureMapping mapping, MaterialMapping matMapping)
Method Detail |
---|
public RenderingMesh clone()
clone
in class java.lang.Object
public void setParameters(ParameterValue[] param)
public void transformMesh(Mat4 trans)
public int[] getVertexIndices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |