Class NvStripInfo
java.lang.Object
com.ardor3d.extension.model.util.nvtristrip.NvStripInfo
-
Field Summary
Modifier and TypeFieldDescription(package private) int
(package private) List<NvFaceInfo>
(package private) int
(package private) NvStripStartInfo
(package private) int
(package private) boolean
-
Constructor Summary
ConstructorDescriptionNvStripInfo
(NvStripStartInfo startInfo, int stripId) NvStripInfo
(NvStripStartInfo startInfo, int stripId, int experimentId) -
Method Summary
Modifier and TypeMethodDescription(package private) void
build
(List<NvEdgeInfo> edgeInfos, List<NvFaceInfo> faceInfos) Builds a strip forward as far as we can go, then builds backwards, and joins the two lists(package private) void
combine
(List<NvFaceInfo> forward, List<NvFaceInfo> backward) take the given forward and backward strips and combine them together(package private) final boolean
(package private) final boolean
IsInStrip
(NvFaceInfo faceInfo) (package private) boolean
isMarked
(NvFaceInfo faceInfo) If either the faceInfo has a real strip index because it is already assign to a committed strip OR it is assigned in an experiment and the experiment index is the one we are building for, then it is marked and unavailable(package private) void
markTriangle
(NvFaceInfo faceInfo) Marks the face with the current strip ID(package private) boolean
sharesEdge
(NvFaceInfo faceInfo, List<NvEdgeInfo> edgeInfos) (package private) boolean
unique
(List<NvFaceInfo> faceVec, NvFaceInfo face)
-
Field Details
-
_startInfo
-
_faces
-
_stripId
int _stripId -
_experimentId
int _experimentId -
_visited
boolean _visited -
_numDegenerates
int _numDegenerates
-
-
Constructor Details
-
NvStripInfo
NvStripInfo(NvStripStartInfo startInfo, int stripId) -
NvStripInfo
NvStripInfo(NvStripStartInfo startInfo, int stripId, int experimentId)
-
-
Method Details
-
isExperiment
- Returns:
- true if the experiment id is >= 0
-
IsInStrip
- Parameters:
faceInfo
- the face info- Returns:
true
if it's in the strip
-
combine
take the given forward and backward strips and combine them together- Parameters:
forward
- the forward stripsbackward
- the backward strips
-
unique
- Parameters:
faceVec
- the face listface
- the face- Returns:
true
if the face is "unique", i.e. has a vertex which doesn't exist in the faceVec
-
isMarked
If either the faceInfo has a real strip index because it is already assign to a committed strip OR it is assigned in an experiment and the experiment index is the one we are building for, then it is marked and unavailable- Parameters:
faceInfo
- the face info- Returns:
true
if the face is marked
-
markTriangle
Marks the face with the current strip ID- Parameters:
faceInfo
- the face info
-
build
Builds a strip forward as far as we can go, then builds backwards, and joins the two lists- Parameters:
edgeInfos
- the edge infosfaceInfos
- the face infos
-