public class StripifierStats
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
counts |
(package private) int |
maxStripLen |
(package private) int |
minStripLen |
(package private) boolean |
noData |
(package private) int |
numFaces |
(package private) int |
numStrips |
(package private) int |
numVerts |
(package private) long |
time |
(package private) int |
totalTris |
| Constructor and Description |
|---|
StripifierStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Clears the statistical data
|
double |
getAvgNumVertsPerTri()
Returns the average number of vertices per triangle in the stripified
data
|
double |
getAvgStripLength()
Return the average length of the strips created by the stripifier
|
int |
getMaxStripLength()
Returns the length in triangles of the longest strip
created by the stripifier.
|
int |
getMinStripLength()
Returns the length in triangles of the shortest strip
created by the stripifier.
|
int |
getNumOrigTris()
Returns the number of triangles in the original, un-stripified data.
|
int |
getNumOrigVerts()
Returns the number of vertices in the original, un-stripified data
|
int |
getNumStrips()
Returns the number of strips created by the stripifier.
|
int |
getNumVerts()
Returns the number of vertices in the stripified data.
|
int[] |
getStripLengthCounts()
Returns an array of length 14 that contains the number of strips of
a given length created by the stripifier.
|
long |
getTotalTime()
Returns the total time spent in the stripify() method
|
int |
getTotalTris()
Returns the number of triangles in the stripified data.
|
java.lang.String |
toString()
Returns a formated String that can be used to print out
the Stripifier stats.
|
(package private) void |
updateInfo(long ntime,
java.util.ArrayList strips,
int nNumFaces) |
(package private) void |
updateInfo(long ntime,
int scLen,
int[] sc,
int nNumFaces) |
int numStrips
int numVerts
int minStripLen
int maxStripLen
int totalTris
int numFaces
long time
int[] counts
boolean noData
public int getNumOrigTris()
public int getNumOrigVerts()
public int getNumStrips()
public int getNumVerts()
public int getTotalTris()
public int getMinStripLength()
public int getMaxStripLength()
public double getAvgStripLength()
public double getAvgNumVertsPerTri()
public long getTotalTime()
public int[] getStripLengthCounts()
public java.lang.String toString()
toString in class java.lang.Objectpublic void clearData()
void updateInfo(long ntime,
java.util.ArrayList strips,
int nNumFaces)
void updateInfo(long ntime,
int scLen,
int[] sc,
int nNumFaces)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.