Package com.gaia3d.basic.remesher
Class FrontierClub
java.lang.Object
com.gaia3d.basic.remesher.FrontierClub
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FrontierClubclassify(org.joml.Vector3d position, GaiaBoundingBox nodeBox, double tolerance) Classifies a frontier position according to the four XY sides of the node bounding box.booleancontains(FrontierClub.Side side) getSides()Returns the only side in this club.booleanThe frontier belongs to two or more sides.booleanisNone()The frontier does not belong to any side of the node box.booleanisSingle()The frontier belongs to exactly one side.toString()
-
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
-
getSingleSide
Returns the only side in this club.- Throws:
IllegalStateException- if the club contains zero or multiple sides.
-
getSides
-
toString
-