Package com.sun.j3d.utils.geometry
Class StripifierStats
java.lang.Object
com.sun.j3d.utils.geometry.StripifierStats
This class collects statistics on the Stripifier. The statistics
are cumulative over all calls to stripify() until clearData() is called.
- Since:
- Java 3D 1.2.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the statistical datadouble
Returns the average number of vertices per triangle in the stripified datadouble
Return the average length of the strips created by the stripifierint
Returns the length in triangles of the longest strip created by the stripifier.int
Returns the length in triangles of the shortest strip created by the stripifier.int
Returns the number of triangles in the original, un-stripified data.int
Returns the number of vertices in the original, un-stripified dataint
Returns the number of strips created by the stripifier.int
Returns the number of vertices in the stripified data.int[]
Returns an array of length 14 that contains the number of strips of a given length created by the stripifier.long
Returns the total time spent in the stripify() methodint
Returns the number of triangles in the stripified data.toString()
Returns a formated String that can be used to print out the Stripifier stats.
-
Method Details
-
getNumOrigTris
public int getNumOrigTris()Returns the number of triangles in the original, un-stripified data.- Since:
- Java 3D 1.2.1
-
getNumOrigVerts
public int getNumOrigVerts()Returns the number of vertices in the original, un-stripified data- Since:
- Java 3D 1.2.1
-
getNumStrips
public int getNumStrips()Returns the number of strips created by the stripifier.- Since:
- Java 3D 1.2.1
-
getNumVerts
public int getNumVerts()Returns the number of vertices in the stripified data.- Since:
- Java 3D 1.2.1
-
getTotalTris
public int getTotalTris()Returns the number of triangles in the stripified data.- Since:
- Java 3D 1.2.1
-
getMinStripLength
public int getMinStripLength()Returns the length in triangles of the shortest strip created by the stripifier.- Since:
- Java 3D 1.2.1
-
getMaxStripLength
public int getMaxStripLength()Returns the length in triangles of the longest strip created by the stripifier.- Since:
- Java 3D 1.2.1
-
getAvgStripLength
public double getAvgStripLength()Return the average length of the strips created by the stripifier- Since:
- Java 3D 1.2.1
-
getAvgNumVertsPerTri
public double getAvgNumVertsPerTri()Returns the average number of vertices per triangle in the stripified data- Since:
- Java 3D 1.2.1
-
getTotalTime
public long getTotalTime()Returns the total time spent in the stripify() method- Since:
- Java 3D 1.2.1
-
getStripLengthCounts
public int[] getStripLengthCounts()Returns an array of length 14 that contains the number of strips of a given length created by the stripifier. Spots 0-8 of the array represent lengths 1-9, 9 is lengths 10-19, 10 is lengths 20-49, 11 is lengths 50-99, 12 is lengths 100-999 and 13 is lengths 1000 or more.- Since:
- Java 3D 1.2.1
-
toString
Returns a formated String that can be used to print out the Stripifier stats. -
clearData
public void clearData()Clears the statistical data
-