- All Known Implementing Classes:
NURBSCurve
public interface LineSegmentizable
If a
LineSegmentizable object is the value of the
attribute Attributes.SHAPE, it
defines a shape which is composed of line segments.- Author:
- Ole Kniemeyer
-
Method Summary
Modifier and TypeMethodDescriptionDefines the data source on which the line segmentization depends.intgetStamp()voidsegmentize(ContextDependent source, GraphState gs, LineArray out, float flatness) Performs the segmentization of the source into line segments.
-
Method Details
-
getStamp
int getStamp() -
getSegmentizableSource
Defines the data source on which the line segmentization depends.- Parameters:
gs- the current graph state- Returns:
- the data source
-
segmentize
Performs the segmentization of the source into line segments. The fieldout.userObjectis not modified.- Parameters:
source- the data source as reported by a previous invocation ofgetSegmentizableSource(GraphState)with the samegsgs- the current graph stateout- the line segments are written tooutflatness- a parameter for the degree of flatness, a typical value is 1
-