Class FrontierClub

java.lang.Object
com.gaia3d.basic.remesher.FrontierClub

public final class FrontierClub extends Object
  • Method Details

    • classify

      public static FrontierClub classify(org.joml.Vector3d position, GaiaBoundingBox nodeBox, double tolerance)
      Classifies a frontier position according to the four XY sides of the node bounding box.

      NORTH = maxY SOUTH = minY EAST = maxX WEST = minX

    • isNone

      public boolean isNone()
      The frontier does not belong to any side of the node box. It may be treated as a regular interior vertex.
    • isSingle

      public boolean isSingle()
      The frontier belongs to exactly one side. It may use an outward clustering cell.
    • isMultiple

      public boolean isMultiple()
      The frontier belongs to two or more sides. Normally this is a corner and should not be remeshed.
    • contains

      public boolean contains(FrontierClub.Side side)
    • getSingleSide

      public FrontierClub.Side getSingleSide()
      Returns the only side in this club.
      Throws:
      IllegalStateException - if the club contains zero or multiple sides.
    • getSides

      public Set<FrontierClub.Side> getSides()
    • toString

      public String toString()
      Overrides:
      toString in class Object