|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.arbaro.mesh.LeafMesh
public class LeafMesh
A class for creation of a leaf in the mesh of all leaves. It is initialized with a leaf shape name. The leaf mesh is located at the origin. To create a leaf at it's position, you have to apply the leafs transformation to the leaf mesh points.
| Constructor Summary | |
|---|---|
LeafMesh(java.lang.String leafShape,
double length,
double width,
double stemLen,
boolean useQuads)
|
|
| Method Summary | |
|---|---|
int |
getShapeFaceCount()
Returns the number ov faces the leaf mesh consists of. |
int |
getShapeVertexCount()
Returns the number of vertices the leaf mesh consist of. |
boolean |
isFlat()
|
Face |
shapeFaceAt(int i)
Returns the i-th face (triangle). |
UVVector |
shapeUVAt(int i)
Returns the i-th uv-vector. |
Vertex |
shapeVertexAt(int i)
Returns the i-th vertex. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeafMesh(java.lang.String leafShape,
double length,
double width,
double stemLen,
boolean useQuads)
| Method Detail |
|---|
public boolean isFlat()
public Vertex shapeVertexAt(int i)
i -
public UVVector shapeUVAt(int i)
i -
public Face shapeFaceAt(int i)
i -
public int getShapeVertexCount()
public int getShapeFaceCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||