|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.util.geom.nvtristrip.TriStrip
public class TriStrip
To use, call generateStrips method, passing your triangle index list and then construct geometry/render resulting PrimitiveGroup objects. Features:
Field Summary | |
---|---|
(package private) boolean |
bListsOnly
|
(package private) boolean |
bStitchStrips
|
(package private) int |
cacheSize
|
static int |
CACHESIZE_GEFORCE1_2
|
static int |
CACHESIZE_GEFORCE3
|
(package private) int |
minStripSize
|
Constructor Summary | |
---|---|
TriStrip()
|
Method Summary | |
---|---|
PrimitiveGroup[] |
generateStrips(int[] in_indices)
|
static void |
remapArrays(float[] vertexBuffer,
int vertexSize,
int[] indices)
|
static int[] |
remapIndices(int[] indices,
int numVerts)
Function to remap your indices to improve spatial locality in your vertex buffer. |
void |
setCacheSize(int _cacheSize)
Sets the cache size which the stripfier uses to optimize the data. |
void |
setListsOnly(boolean _bListsOnly)
If set to true, will return an optimized list, with no strips at all. |
void |
setMinStripSize(int _minStripSize)
Sets the minimum acceptable size for a strip, in triangles. |
void |
setStitchStrips(boolean _bStitchStrips)
bool to indicate whether to stitch together strips into one huge strip or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CACHESIZE_GEFORCE1_2
public static final int CACHESIZE_GEFORCE3
int cacheSize
boolean bStitchStrips
int minStripSize
boolean bListsOnly
Constructor Detail |
---|
public TriStrip()
Method Detail |
---|
public void setListsOnly(boolean _bListsOnly)
public void setCacheSize(int _cacheSize)
public void setStitchStrips(boolean _bStitchStrips)
public void setMinStripSize(int _minStripSize)
public PrimitiveGroup[] generateStrips(int[] in_indices)
in_indices
- input index list, the indices you would use to render
public static int[] remapIndices(int[] indices, int numVerts)
public static void remapArrays(float[] vertexBuffer, int vertexSize, int[] indices)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |