public class Triangulator extends Object
GeometryInfo
Constructor and Description |
---|
Triangulator()
Deprecated.
This class is created automatically when needed in
GeometryInfo and never needs to be used directly. Putting data
into a GeometryInfo with primitive POLYGON_ARRAY automatically
causes the triangulator to be created and used.
|
Triangulator(int earOrder)
Deprecated.
This class is created automatically when needed in
GeometryInfo and never needs to be used directly. Putting data
into a GeometryInfo with primitive POLYGON_ARRAY automatically
causes the triangulator to be created and used.
|
Modifier and Type | Method and Description |
---|---|
void |
triangulate(GeometryInfo gi)
This routine converts the GeometryInfo object from primitive type
POLYGON_ARRAY to primitive type TRIANGLE_ARRAY using polygon
decomposition techniques.
|
public Triangulator()
public Triangulator(int earOrder)
public void triangulate(GeometryInfo gi)
Example of usage: Triangulator tr = new Triangulator(); tr.triangulate(ginfo); // ginfo contains the geometry. shape.setGeometry(ginfo.getGeometryArray()); // shape is a Shape3D.
gi
- Geometry to be triangulatedCopyright © 2016–2022 SciJava. All rights reserved.