Module org.dyn4j

Class Feature

  • Direct Known Subclasses:
    EdgeFeature, PointFeature

    public abstract class Feature
    extends Object
    Represents an indexed feature of a Shape.
    Since:
    1.0.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Field Detail

      • NOT_INDEXED

        public static final int NOT_INDEXED
        Index for non-indexed vertices
        See Also:
        Constant Field Values
    • Constructor Detail

      • Feature

        public Feature​(int index)
        Minimal constructor.
        Parameters:
        index - the index of the feature in the Shape
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the edge index.

        If the index == NOT_INDEXED then this feature represents a curved shape feature.

        Returns:
        int