Class QuadEdgeConstants


  • public final class QuadEdgeConstants
    extends Object
    Defines constants for use in QuadEdge related operations.
    • Field Detail

      • CONSTRAINT_INDEX_MAX

        public static final int CONSTRAINT_INDEX_MAX
        The maximum value of a constraint index based on the three bytes allocated for its storage. This would be a value of 16777215, or 2^24-1 but we reserve the 3 values at the top for special use. In practice this value is larger than the available memory on many contemporary computers would allow.
        See Also:
        Constant Field Values
      • CONSTRAINT_INDEX_MASK

        public static final int CONSTRAINT_INDEX_MASK
        A mask that can be anded with the QuadEdgePartner's index field to extract the constraint index, equivalent to the 24 low-order bits.
        See Also:
        Constant Field Values
      • CONSTRAINT_INDEX_COMPLIMENT

        public static final int CONSTRAINT_INDEX_COMPLIMENT
        See Also:
        Constant Field Values
      • CONSTRAINT_EDGE_FLAG

        public static final int CONSTRAINT_EDGE_FLAG
        A bit indicating that an edge is constrained. This bit just happens to be the sign bit, a feature that is exploited by the isConstrained() method.
        See Also:
        Constant Field Values
      • CONSTRAINT_REGION_BORDER_FLAG

        public static final int CONSTRAINT_REGION_BORDER_FLAG
        A bit indicating that the edge is the border of a constrained region
        See Also:
        Constant Field Values
      • CONSTRAINT_REGION_INTERIOR_FLAG

        public static final int CONSTRAINT_REGION_INTERIOR_FLAG
        A bit indicating that an edge is in the interior of a constrained region.
        See Also:
        Constant Field Values
      • CONSTRAINT_LINE_MEMBER_FLAG

        public static final int CONSTRAINT_LINE_MEMBER_FLAG
        A bit indicating that an edge is part of a non-region constraint line. Edges are allowed to be both an interior and a line, so a separate flag bit is required for both cases.
        See Also:
        Constant Field Values
      • CONSTRAINT_REGION_MEMBER_FLAGS

        public static final int CONSTRAINT_REGION_MEMBER_FLAGS
        A set of bits combining the constraint region interior and border flags.
        See Also:
        Constant Field Values
      • SYNTHETIC_EDGE_FLAG

        public static final int SYNTHETIC_EDGE_FLAG
        A bit indicating that an edge has been marked as synthetic.
        See Also:
        Constant Field Values