- All Known Subinterfaces:
Polygons
- All Known Implementing Classes:
Arrange
,GRSMesh
,Patch
,PolygonMesh
,PolygonMeshArray
,PolygonsBase
public interface Polygonization
This interface represents an algorithm which decomposes a data source
returned by
Polygonizable.getPolygonizableSource(GraphState)
into a polygon mesh representation.- Author:
- Ole Kniemeyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Bit mask forpolygonize
indicating that normal vectors have to be computed.static final int
Bit mask forpolygonize
indicating that uv coordinates have to be computed. -
Method Summary
Modifier and TypeMethodDescriptionvoid
polygonize
(ContextDependent source, GraphState gs, PolygonArray out, int flags, float flatness) Performs the polygonization of the source into polygons.
-
Field Details
-
COMPUTE_NORMALS
static final int COMPUTE_NORMALSBit mask forpolygonize
indicating that normal vectors have to be computed.- See Also:
-
COMPUTE_UV
static final int COMPUTE_UVBit mask forpolygonize
indicating that uv coordinates have to be computed.- See Also:
-
-
Method Details
-
polygonize
void polygonize(ContextDependent source, GraphState gs, PolygonArray out, int flags, float flatness) Performs the polygonization of the source into polygons. The fieldout.userObject
is not modified.- Parameters:
source
- the data source as reported by a previous invocation ofPolygonizable.getPolygonizableSource(GraphState)
with the samegs
gs
- the current graph stateout
- the polygons are written toout
flags
- combination of bit masksflatness
- a parameter for the degree of flatness, a typical value is 1
-