|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.RenderingTriangle
artofillusion.texture.UVMappedTriangle
public class UVMappedTriangle
UVMappedTriangle is a subclass of RenderingTriangle, which represents a triangle whose 2D texture coordinates are explicitly specified at each vertex.
Field Summary |
---|
Fields inherited from class artofillusion.RenderingTriangle |
---|
index, n1, n2, n3, theMesh, v1, v2, v3 |
Constructor Summary | |
---|---|
UVMappedTriangle(int v1,
int v2,
int v3,
int n1,
int n2,
int n3)
Create a new UVMappedTriangle. |
Method Summary | |
---|---|
double |
getDisplacement(double u,
double v,
double w,
double size,
double time)
Get the displacement for a point on the triangle. |
void |
getTextureSpec(TextureSpec spec,
double angle,
double u,
double v,
double w,
double size,
double time)
Given the barycentric coordinates for a point in the triangle, build a TextureSpec describing the properties of the triangle at that point. |
void |
getTransparency(RGBColor trans,
double angle,
double u,
double v,
double w,
double size,
double time)
Same as above, except only return the transparent color. |
void |
setMesh(RenderingMesh mesh,
TextureMapping map,
int index)
Set the mesh that this triangle is part of. |
void |
setTextureCoordinates(float s1,
float t1,
float s2,
float t2,
float s3,
float t3,
Vec3 vert1,
Vec3 vert2,
Vec3 vert3)
Set the texture coordinates for this triangle and update various internal parameters. |
Methods inherited from class artofillusion.RenderingTriangle |
---|
clone, getParameters, getTextureMapping |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UVMappedTriangle(int v1, int v2, int v3, int n1, int n2, int n3)
Method Detail |
---|
public void setMesh(RenderingMesh mesh, TextureMapping map, int index)
setMesh
in class RenderingTriangle
mesh
- the RenderingMesh this triangle belongs tomap
- the TextureMapping for this triangleindex
- the index of this triangle within the meshpublic void setTextureCoordinates(float s1, float t1, float s2, float t2, float s3, float t3, Vec3 vert1, Vec3 vert2, Vec3 vert3)
public void getTextureSpec(TextureSpec spec, double angle, double u, double v, double w, double size, double time)
RenderingTriangle
getTextureSpec
in class RenderingTriangle
public void getTransparency(RGBColor trans, double angle, double u, double v, double w, double size, double time)
RenderingTriangle
getTransparency
in class RenderingTriangle
public double getDisplacement(double u, double v, double w, double size, double time)
RenderingTriangle
getDisplacement
in class RenderingTriangle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |