Class NvStripInfo

java.lang.Object
com.ardor3d.extension.model.util.nvtristrip.NvStripInfo

final class NvStripInfo extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • isExperiment

      final boolean isExperiment()
      Returns:
      true if the experiment id is >= 0
    • IsInStrip

      final boolean IsInStrip(NvFaceInfo faceInfo)
      Parameters:
      faceInfo - the face info
      Returns:
      true if it's in the strip
    • sharesEdge

      boolean sharesEdge(NvFaceInfo faceInfo, List<NvEdgeInfo> edgeInfos)
      Parameters:
      faceInfo - the face info
      edgeInfos - the edge infos
      Returns:
      true if the input face and the current strip share an edge
    • combine

      void combine(List<NvFaceInfo> forward, List<NvFaceInfo> backward)
      take the given forward and backward strips and combine them together
      Parameters:
      forward - the forward strips
      backward - the backward strips
    • unique

      boolean unique(List<NvFaceInfo> faceVec, NvFaceInfo face)
      Parameters:
      faceVec - the face list
      face - the face
      Returns:
      true if the face is "unique", i.e. has a vertex which doesn't exist in the faceVec
    • isMarked

      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
      Parameters:
      faceInfo - the face info
      Returns:
      true if the face is marked
    • markTriangle

      void markTriangle(NvFaceInfo faceInfo)
      Marks the face with the current strip ID
      Parameters:
      faceInfo - the face info
    • build

      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
      Parameters:
      edgeInfos - the edge infos
      faceInfos - the face infos