| java.lang.Object javax.media.j3d.GeneralizedStrip
GeneralizedStrip | class GeneralizedStrip (Code) | | This class provides static methods to support topological
transformations on generalized strips. This is used by the
GeometryDecompressor. These methods only need to look at the
vertex replacement flags to determine how the vertices in the strip
are connected. The connections are rearranged in different ways to
transform generalized strips to GeometryArray representations.
See Also: GeneralizedStripFlags See Also: GeneralizedVertexList See Also: GeometryDecompressor |
Inner Class :static class IntList | |
Inner Class :static class StripArray | |
Method Summary | |
static StripArray | fanToStrips(int v, int length, int fans, boolean convexPlanar) Takes a fan and converts it to one or more strips. | static int[] | fansToTriangles(int stripCounts) Breaks up triangle fans into separate triangles. | static int | getLineCount(int stripCounts) Counts the number of lines defined by arrays of line strips. | static int | getTriangleCount(int stripCounts) Counts the number of triangles defined by arrays of
triangle strips or fans. | static int | getTriangleCount(IntList stripCounts) Counts the number of triangles defined by arrays of
triangle strips or fans. | static int[] | stripsToTriangles(int stripCounts) Breaks up triangle strips into separate triangles. | static StripArray | toLineStrips(GeneralizedStripFlags vertices) Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a StripArray. | static StripArray[] | toStripsAndFans(GeneralizedStripFlags vertices, int frontFace) Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a 2-element array of
StripArray objects. | static StripArray[] | toStripsAndTriangles(GeneralizedStripFlags vertices, int frontFace, int shortStripSize, int maxShortStrips) Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a 2-element array of
StripArray objects. | static StripArray | toTriangleStrips(GeneralizedStripFlags vertices, int frontFace) Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a StripArray containing
exclusively strips. | static int[] | toTriangles(GeneralizedStripFlags vertices, int frontFace) Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning an array of vertex
references representing the original generalized strip as individual
triangles. |
fanToStrips | static StripArray fanToStrips(int v, int length, int fans, boolean convexPlanar)(Code) | | Takes a fan and converts it to one or more strips.
Parameters: v - index into the fans array of the first vertex in the fan Parameters: length - number of vertices in the fan Parameters: fans - array of vertex indices representing one or more fans Parameters: convexPlanar - if true indicates that the fan is convex andplanar; such fans will always be converted into a single strip a StripArray containing the converted strips |
fansToTriangles | static int[] fansToTriangles(int stripCounts)(Code) | | Breaks up triangle fans into separate triangles.
Parameters: stripCounts - array of strip counts, as used by theGeometryStripArray object array of ints which index into the original vertex array; eachset of three consecutive vertex indices defines a single triangle |
getLineCount | static int getLineCount(int stripCounts)(Code) | | Counts the number of lines defined by arrays of line strips.
Parameters: stripCounts - array of strip counts, as used by theGeometryStripArray object number of lines in the strips |
getTriangleCount | static int getTriangleCount(int stripCounts)(Code) | | Counts the number of triangles defined by arrays of
triangle strips or fans.
Parameters: stripCounts - array of strip counts, as used by theGeometryStripArray object number of triangles in the strips or fans |
getTriangleCount | static int getTriangleCount(IntList stripCounts)(Code) | | Counts the number of triangles defined by arrays of
triangle strips or fans.
Parameters: stripCounts - IntList of strip counts number of triangles in the strips or fans |
stripsToTriangles | static int[] stripsToTriangles(int stripCounts)(Code) | | Breaks up triangle strips into separate triangles.
Parameters: stripCounts - array of strip counts, as used by theGeometryStripArray object array of ints which index into the original vertex array; eachset of three consecutive vertex indices defines a single triangle |
toLineStrips | static StripArray toLineStrips(GeneralizedStripFlags vertices)(Code) | | Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a StripArray.
RESTART_CW and RESTART_CCW are treated as equivalent, as are
REPLACE_MIDDLE and REPLACE_OLDEST.
Parameters: vertices - an object implementing GeneralizedStripFlags a StripArray representing an array of line strips |
toStripsAndFans | static StripArray[] toStripsAndFans(GeneralizedStripFlags vertices, int frontFace)(Code) | | Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a 2-element array of
StripArray objects. The first StripArray will contain triangle strips
and the second will contain triangle fans.
Parameters: vertices - an object implementing GeneralizedStripFlags Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding a 2-element array containing strips in 0 and fans in 1 |
toStripsAndTriangles | static StripArray[] toStripsAndTriangles(GeneralizedStripFlags vertices, int frontFace, int shortStripSize, int maxShortStrips)(Code) | | Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a 2-element array of
StripArray objects. The first StripArray will contain triangle strips
and the second will contain individual triangles in the vertices
field. Short strips will be converted to individual triangles.
Parameters: vertices - an object implementing GeneralizedStripFlags Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding Parameters: shortStripSize - strips this size or less will be converted toindividual triangles if there are more than maxShortStrips of them Parameters: maxShortStrips - maximum number of short strips allowed beforecreating individual triangles a 2-element array containing strips in 0 and triangles in 1 |
toTriangleStrips | static StripArray toTriangleStrips(GeneralizedStripFlags vertices, int frontFace)(Code) | | Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning a StripArray containing
exclusively strips.
Parameters: vertices - an object implementing GeneralizedStripFlags Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding a StripArray containing the converted strips |
toTriangles | static int[] toTriangles(GeneralizedStripFlags vertices, int frontFace)(Code) | | Interprets the vertex flags associated with a class implementing
GeneralizedStripFlags, constructing and returning an array of vertex
references representing the original generalized strip as individual
triangles. Each sequence of three consecutive vertex references in the
output defines a single triangle.
Parameters: vertices - an object implementing GeneralizedStripFlags Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding an array of indices into the original vertex array |
|
|