|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.imp3d.objects.PolygonsBase
de.grogra.imp3d.objects.PolygonMesh
public class PolygonMesh
This class encapsulates a static PolygonArray. Polygonalization is just making a copy of the stored polygon array to the output array.
| Field Summary | |
|---|---|
protected int[] |
indices
|
protected float[] |
n
|
protected int |
stamp
|
protected float[] |
t
|
protected float[] |
v
|
| Fields inherited from interface de.grogra.imp3d.Polygonization |
|---|
COMPUTE_NORMALS, COMPUTE_UV |
| Constructor Summary | |
|---|---|
PolygonMesh()
|
|
| Method Summary | |
|---|---|
float[] |
computeMaxMin()
Computes max and min values of vertex data. |
float[] |
computeMaxMin(Matrix4d m)
Computes max and min values of vertex data. |
int[] |
getIndexData()
|
float[] |
getNormalData()
|
int |
getStamp()
|
float[] |
getTextureData()
|
float[] |
getVertexData()
|
void |
incrementStamp()
|
static void |
multiplyMatrixWithTuple3d(Matrix4d matrix,
Tuple3d point)
Multiplies matrix with point and writes result into point. |
void |
polygonize(ContextDependent source,
GraphState gs,
PolygonArray out,
int flags,
float flatness)
Performs the polygonization of the source into polygons. |
void |
setIndexData(IntList indexData)
|
void |
setNormalData(float[] normalData)
|
void |
setTextureData(float[] textureData)
|
void |
setVertexData(FloatList vertexData)
|
void |
writeStamp(Cache.Entry cache,
GraphState gs)
Writes a stamp of the context into cache. |
| Methods inherited from class de.grogra.imp3d.objects.PolygonsBase |
|---|
dependsOnContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] indices
protected float[] n
protected int stamp
protected float[] t
protected float[] v
| Constructor Detail |
|---|
public PolygonMesh()
| Method Detail |
|---|
public float[] computeMaxMin()
public float[] computeMaxMin(Matrix4d m)
m - Use can use m to transform all vertices to global coordinates.
public final int[] getIndexData()
public final float[] getNormalData()
public int getStamp()
getStamp in class PolygonsBasepublic final float[] getTextureData()
public final float[] getVertexData()
public void incrementStamp()
public static void multiplyMatrixWithTuple3d(Matrix4d matrix,
Tuple3d point)
matrix - point -
public void polygonize(ContextDependent source,
GraphState gs,
PolygonArray out,
int flags,
float flatness)
Polygonizationout.userObject is not modified.
source - the data source as reported by a previous invocation of
Polygonizable.getPolygonizableSource(GraphState)
with the same gsgs - the current graph stateout - the polygons are written to outflags - combination of bit masksflatness - a parameter for the degree of flatness, a typical value is 1public void setIndexData(IntList indexData)
public void setNormalData(float[] normalData)
public void setTextureData(float[] textureData)
public void setVertexData(FloatList vertexData)
public void writeStamp(Cache.Entry cache,
GraphState gs)
ContextDependentcache. Based on
this stamp, a cache detects whether the context of this
object has changed or not.
writeStamp in interface ContextDependentwriteStamp in class PolygonsBasecache - a cache entry to write the stampgs - the current graph state
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||