Package org.h2gis.utilities.jts_utils
Class Contouring
- java.lang.Object
-
- org.h2gis.utilities.jts_utils.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 Summary
Constructors Constructor Description Contouring()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<Short,Deque<TriMarkers>>processTriangle(TriMarkers triangleData, List<Double> isoLvls)static booleansplitInterval(double beginIncluded, double endExcluded, TriMarkers currentTriangle, Deque<TriMarkers> outsideTriangles, Deque<TriMarkers> intervalTriangles)Use interval to split the triangle into severals ones
-
-
-
Method Detail
-
splitInterval
public static boolean splitInterval(double beginIncluded, double endExcluded, TriMarkers currentTriangle, Deque<TriMarkers> outsideTriangles, Deque<TriMarkers> intervalTriangles) throws org.locationtech.jts.geom.TopologyExceptionUse interval to split the triangle into severals ones- Parameters:
beginIncluded- Begin of iso level valueendExcluded- End of iso level valuecurrentTriangle- Triangle to processoutsideTriangles- Split triangles outside of the regionintervalTriangles- 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 valuesisoLvls- 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
-
-