|
CubeTwister 2.0alpha141 2011-10-13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectidx3d.idx3d_Triangle
public class idx3d_Triangle
Defines a 3d triangle.
| Field Summary | |
|---|---|
int |
id
|
idx3d_Vector |
n
Normal vector of flat triangle. |
idx3d_Vector |
n2
Projected Normal vector. |
boolean |
outOfFrustrum
visibility tag for frustrum clipping. |
idx3d_Vertex |
p1
First vertex. |
idx3d_Vertex |
p2
Second vertex. |
idx3d_Vertex |
p3
Third vertex. |
idx3d_Object |
parent
The object which contains this triangle. |
int[] |
tx
Texture x-coordinates (absolute). |
int[] |
ty
Texture y-coordinates (absolute). |
float[] |
u
Texture x-coordinates (relative). |
float[] |
v
Texture y-coordinates (relative). |
boolean |
visible
Visibility tag for clipping. |
| Constructor Summary | |
|---|---|
idx3d_Triangle(idx3d_Vertex a,
idx3d_Vertex b,
idx3d_Vertex c)
|
|
| Method Summary | |
|---|---|
void |
clipFrustrum(int w,
int h)
Backface culling and frustrum clipping. |
boolean |
degenerated()
|
idx3d_Vector |
getCenter()
|
idx3d_Triangle |
getClone()
|
float |
getDist()
|
idx3d_InternalMaterial |
getMaterial()
Returns the material which shall be used to render this triangle. |
idx3d_Vertex |
getMedium()
|
idx3d_InternalMaterial |
getTriangleMaterial()
Returns the local material setting. |
idx3d_Vector |
getWeightedNormal()
|
idx3d_Vector |
getWeightedNormalInto(idx3d_Vector resultVector)
|
void |
project(idx3d_Matrix normalProjection)
|
void |
regenerateNormal()
|
void |
scaleTextureCoordinates(float fx,
float fy)
|
void |
setTriangleMaterial(idx3d_InternalMaterial material)
Sets an individual material for this triangle. |
void |
setUV(float u1,
float v1,
float u2,
float v2,
float u3,
float v3)
|
void |
setUV(int vertex,
float u,
float v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public idx3d_Object parent
public boolean visible
public boolean outOfFrustrum
public idx3d_Vertex p1
public idx3d_Vertex p2
public idx3d_Vertex p3
public idx3d_Vector n
public idx3d_Vector n2
public int id
public float[] u
public float[] v
public int[] tx
public int[] ty
| Constructor Detail |
|---|
public idx3d_Triangle(idx3d_Vertex a,
idx3d_Vertex b,
idx3d_Vertex c)
| Method Detail |
|---|
public void setTriangleMaterial(idx3d_InternalMaterial material)
material - A material or null.public idx3d_InternalMaterial getTriangleMaterial()
public idx3d_InternalMaterial getMaterial()
public void clipFrustrum(int w,
int h)
public void project(idx3d_Matrix normalProjection)
public void setUV(float u1,
float v1,
float u2,
float v2,
float u3,
float v3)
public void setUV(int vertex,
float u,
float v)
public void scaleTextureCoordinates(float fx,
float fy)
public void regenerateNormal()
public idx3d_Vector getWeightedNormal()
public idx3d_Vector getWeightedNormalInto(idx3d_Vector resultVector)
public idx3d_Vertex getMedium()
public idx3d_Vector getCenter()
public float getDist()
public boolean degenerated()
public idx3d_Triangle getClone()
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||