Class TriangulationMethod
java.lang.Object
com.j3d.engine.scene.nodes.util.tri.TriangulationMethod
- Direct Known Subclasses:
Delaunay, EarClipping, Seidel
public abstract sealed class TriangulationMethod
extends Object
permits EarClipping, Delaunay, Seidel
- Author:
- yetnt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TriangulationMethod.Triangulatedprotected voidverifyCoplanar(ArrayList<GPoint> gPoints) Verifies that all points in the polygon lie along the same plane in 3D space.
-
Field Details
-
Fetch
-
COPLANAR_TOLERANCE
public static final double COPLANAR_TOLERANCE- See Also:
-
-
Constructor Details
-
TriangulationMethod
public TriangulationMethod()
-
-
Method Details
-
apply
@Nullable public abstract TriangulationMethod.Triangulated apply(@NotNull ArrayList<GPoint> v3s) throws TriangulationMethod.InvalidTriangulationException -
verifyCoplanar
protected void verifyCoplanar(@NotNull ArrayList<GPoint> gPoints) throws TriangulationMethod.InvalidTriangulationException Verifies that all points in the polygon lie along the same plane in 3D space.- Parameters:
gPoints- the list of polygon vertices- Throws:
TriangulationMethod.InvalidTriangulationException- if points are collinear or not coplanar
-