Class ArcsSet

    • Constructor Detail

      • ArcsSet

        public ArcsSet​(double lower,
                       double upper,
                       double tolerance)
                throws MathIllegalArgumentException
        Build an arcs set corresponding to a single arc.

        If either lower is equals to upper or the interval exceeds \( 2 \pi \), the arc is considered to be the full circle and its initial defining boundaries will be forgotten. lower is not allowed to be greater than upper (an exception is thrown in this case).

        Parameters:
        lower - lower bound of the arc
        upper - upper bound of the arc
        tolerance - tolerance below which close sub-arcs are merged together
        Throws:
        MathIllegalArgumentException - if lower is greater than upper or tolerance is smaller than Sphere1D.SMALLEST_TOLERANCE
      • ArcsSet

        public ArcsSet​(Collection<SubLimitAngle> boundary,
                       double tolerance)
                throws ArcsSet.InconsistentStateAt2PiWrapping,
                       MathIllegalArgumentException
        Build an arcs set from a Boundary REPresentation (B-rep).

        The boundary is provided as a collection of sub-hyperplanes. Each sub-hyperplane has the interior part of the region on its minus side and the exterior on its plus side.

        The boundary elements can be in any order, and can form several non-connected sets (like for example polygons with holes or a set of disjoints polyhedrons considered as a whole). In fact, the elements do not even need to be connected together (their topological connections are not used here). However, if the boundary does not really separate an inside open from an outside open (open having here its topological meaning), then subsequent calls to the checkPoint method will not be meaningful anymore.

        If the boundary is empty, the region will represent the whole space.

        Parameters:
        boundary - collection of boundary elements
        tolerance - tolerance below which close sub-arcs are merged together
        Throws:
        ArcsSet.InconsistentStateAt2PiWrapping - if the tree leaf nodes are not consistent across the \( 0, 2 \pi \) crossing
        MathIllegalArgumentException - if tolerance is smaller than Sphere1D.SMALLEST_TOLERANCE