Class Contouring


  • public class Contouring
    extends Object
    Split triangle into area within the specified range values. ********************************* ANR EvalPDU IFSTTAR 11_05_2011
    Author:
    Nicolas FORTIN, Judicaƫl PICAUT
    • Constructor Detail

      • Contouring

        public Contouring()
    • Method Detail

      • splitInterval

        public static boolean splitInterval​(double beginIncluded,
                                            double endExcluded,
                                            TriMarkers currentTriangle,
                                            Deque<TriMarkers> outsideTriangles,
                                            Deque<TriMarkers> intervalTriangles)
                                     throws org.locationtech.jts.geom.TopologyException
        Use interval to split the triangle into severals ones
        Parameters:
        beginIncluded - Begin of iso level value
        endExcluded - End of iso level value
        currentTriangle - Triangle to process
        outsideTriangles - Split triangles outside of the region
        intervalTriangles - Split triangles covered by the region
        Returns:
        False if the entire geometry is outside of the region, true if outsideTriangles or intervalTriangles has been updated.
        Throws:
        org.locationtech.jts.geom.TopologyException
      • processTriangle

        public static Map<Short,​Deque<TriMarkers>> processTriangle​(TriMarkers triangleData,
                                                                         List<Double> isoLvls)
                                                                  throws org.locationtech.jts.geom.TopologyException
        Parameters:
        triangleData - Triangle Coordinates and Marker values
        isoLvls - Iso level to extract.
        Returns:
        processedTriangles Return sub-triangle corresponding to iso levels. iso level are stored in markers (same for m0,m1,m2)
        Throws:
        org.locationtech.jts.geom.TopologyException