Package fr.ign.artiscales.pm.division
Class CampSkeleton
java.lang.Object
fr.ign.artiscales.pm.division.CampSkeleton
Squelette droit pondéré calculé d'après la librairie campskeleton. Possibilité de pondérer ce squelette. Le résultat est présenté sous la forme d'une carte topo. Les faces les
arcs et les noeuds sont renseignés ainsi que la position des arcs par rapport aux différentes faces. Possibilité d'obtenir seulement les arcs intérieurs.
-
Constructor Summary
ConstructorsConstructorDescriptionCampSkeleton(org.locationtech.jts.geom.Polygon p)Calcul du squelette droit, le résultat est obtenu par le getCarteTopo().CampSkeleton(org.locationtech.jts.geom.Polygon p, double cap)Straight skelton calculation with cap parameters that defines a perpendicular distance from the block contoursCampSkeleton(org.locationtech.jts.geom.Polygon p, double[] angles)CampSkeleton(org.locationtech.jts.geom.Polygon inputPolygon, double[] angles, double cap)Calcul du squelette droit, le résultat est obtenu par le getCarteTopo(). -
Method Summary
Modifier and TypeMethodDescriptionstatic org.twak.utils.collections.LoopL<org.twak.camp.Edge>buildEdgeLoops(org.locationtech.jts.geom.Polygon p, double[] angles)static org.twak.camp.SkeletonbuildSkeleton(org.locationtech.jts.geom.Polygon p, double[] angles)static org.locationtech.jts.geom.PolygonconvertCornerLoops(org.twak.utils.collections.LoopL<org.twak.camp.Corner> points, org.locationtech.jts.geom.GeometryFactory factory)static org.locationtech.jts.geom.PolygonconvertFace(org.twak.utils.collections.LoopL<javax.vecmath.Point3d> points, org.locationtech.jts.geom.GeometryFactory factory)static List<org.twak.camp.Edge>fromDPLToEdges(org.locationtech.jts.geom.Coordinate[] dpl)Convertit une liste de sommets formant un cycle en arrêtesstatic javax.vecmath.Point3dgetEnd(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)List<fr.ign.artiscales.tools.graph.Edge>fr.ign.artiscales.tools.graph.TopologicalGraphgetGraph()List<fr.ign.artiscales.tools.graph.Edge>List<fr.ign.artiscales.tools.graph.Edge>static javax.vecmath.Point3dgetStart(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)static org.locationtech.jts.geom.Polygonshrink(org.locationtech.jts.geom.Polygon p, double value)
-
Constructor Details
-
CampSkeleton
public CampSkeleton(org.locationtech.jts.geom.Polygon p)Calcul du squelette droit, le résultat est obtenu par le getCarteTopo(). Le même poids est appliqué à tous les arcs.- Parameters:
p- initial polygon
-
CampSkeleton
public CampSkeleton(org.locationtech.jts.geom.Polygon p, double cap)Straight skelton calculation with cap parameters that defines a perpendicular distance from the block contours- Parameters:
p-cap-
-
CampSkeleton
public CampSkeleton(org.locationtech.jts.geom.Polygon p, double[] angles) -
CampSkeleton
public CampSkeleton(org.locationtech.jts.geom.Polygon inputPolygon, double[] angles, double cap)Calcul du squelette droit, le résultat est obtenu par le getCarteTopo(). Une pondération est appliquée.- Parameters:
inputPolygon- initial polygonangles- la pondération appliquée pour le calcul de squelette droit. Le nombre d'élément du tableaux doit être au moins égal au nombre de côté (intérieurs inclus du polygone)
-
-
Method Details
-
buildSkeleton
public static org.twak.camp.Skeleton buildSkeleton(org.locationtech.jts.geom.Polygon p, double[] angles) -
buildEdgeLoops
public static org.twak.utils.collections.LoopL<org.twak.camp.Edge> buildEdgeLoops(org.locationtech.jts.geom.Polygon p, double[] angles) -
convertFace
public static org.locationtech.jts.geom.Polygon convertFace(org.twak.utils.collections.LoopL<javax.vecmath.Point3d> points, org.locationtech.jts.geom.GeometryFactory factory) -
fromDPLToEdges
Convertit une liste de sommets formant un cycle en arrêtes- Parameters:
dpl-
-
getGraph
public fr.ign.artiscales.tools.graph.TopologicalGraph getGraph()- Returns:
- perment d'obtenir la carte topo générée
-
getExteriorEdges
- Returns:
- extrait les arcs extérieurs du polygone
-
getInteriorEdges
- Returns:
- extrait les arcs générés lors du calcul du squelette droit
-
getIncludedEdges
- Returns:
- extrait les arcs générés ne touchant pas la frontière du polygone
-
convertCornerLoops
public static org.locationtech.jts.geom.Polygon convertCornerLoops(org.twak.utils.collections.LoopL<org.twak.camp.Corner> points, org.locationtech.jts.geom.GeometryFactory factory) -
shrink
public static org.locationtech.jts.geom.Polygon shrink(org.locationtech.jts.geom.Polygon p, double value)
-