Class CampSkeleton

java.lang.Object
fr.ign.artiscales.pm.division.CampSkeleton

public class CampSkeleton extends Object
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

    Constructors
    Constructor
    Description
    CampSkeleton​(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 contours
    CampSkeleton​(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 Type
    Method
    Description
    static org.twak.utils.collections.LoopL<org.twak.camp.Edge>
    buildEdgeLoops​(org.locationtech.jts.geom.Polygon p, double[] angles)
     
    static org.twak.camp.Skeleton
    buildSkeleton​(org.locationtech.jts.geom.Polygon p, double[] angles)
     
    static org.locationtech.jts.geom.Polygon
    convertCornerLoops​(org.twak.utils.collections.LoopL<org.twak.camp.Corner> points, org.locationtech.jts.geom.GeometryFactory factory)
     
    static org.locationtech.jts.geom.Polygon
    convertFace​(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êtes
    static javax.vecmath.Point3d
    getEnd​(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)
     
    List<fr.ign.artiscales.tools.graph.Edge>
     
    fr.ign.artiscales.tools.graph.TopologicalGraph
     
    List<fr.ign.artiscales.tools.graph.Edge>
     
    List<fr.ign.artiscales.tools.graph.Edge>
     
    static javax.vecmath.Point3d
    getStart​(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)
     
    static org.locationtech.jts.geom.Polygon
    shrink​(org.locationtech.jts.geom.Polygon p, double value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 polygon
      angles - 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)
    • getStart

      public static javax.vecmath.Point3d getStart(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)
    • getEnd

      public static javax.vecmath.Point3d getEnd(org.twak.camp.Output.SharedEdge se, org.twak.camp.Output.Face ref)
    • fromDPLToEdges

      public static List<org.twak.camp.Edge> fromDPLToEdges(org.locationtech.jts.geom.Coordinate[] dpl)
      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

      public List<fr.ign.artiscales.tools.graph.Edge> getExteriorEdges()
      Returns:
      extrait les arcs extérieurs du polygone
    • getInteriorEdges

      public List<fr.ign.artiscales.tools.graph.Edge> getInteriorEdges()
      Returns:
      extrait les arcs générés lors du calcul du squelette droit
    • getIncludedEdges

      public List<fr.ign.artiscales.tools.graph.Edge> 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)