Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.grogra.imp3d
Interface LineSegmentizable

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
`ContextDependent` | `getSegmentizableSource(GraphState gs)` Defines the data source on which the line segmentization depends.
`int` | `getStamp()`
`void` | `segmentize(ContextDependent source, GraphState gs, LineArray out, float flatness)` Performs the segmentization of the source into line segments.

Method Detail

### getSegmentizableSource

    ContextDependent getSegmentizableSource(GraphState gs)

  Defines the data source on which the line segmentization depends.

  Parameters:
    `gs` - the current graph state
  Returns:
    the data source

### getStamp

    int getStamp()

### segmentize

    void segmentize(ContextDependent source,
                    GraphState gs,
                    LineArray out,
                    float flatness)

  Performs the segmentization of the source into line segments. The field `out.userObject` is not modified.

  Parameters:
    `source` - the data source as reported by a previous invocation of `getSegmentizableSource(GraphState)` with the same `gs`
    `gs` - the current graph state
    `out` - the line segments are written to `out`
    `flatness` - a parameter for the degree of flatness, a typical value is 1

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD