Search in sources :

Example 1 with SimpleMCSweepLineIntersector

use of com.revolsys.geometry.geomgraph.index.SimpleMCSweepLineIntersector in project com.revolsys.open by revolsys.

the class EdgeSetNoder method getNodedEdges.

public List getNodedEdges() {
    final EdgeSetIntersector esi = new SimpleMCSweepLineIntersector();
    final SegmentIntersector si = new SegmentIntersector(this.li, true, false);
    esi.computeIntersections(this.inputEdges, si, true);
    // Debug.println("has proper int = " + si.hasProperIntersection());
    final List splitEdges = new ArrayList();
    for (final Iterator i = this.inputEdges.iterator(); i.hasNext(); ) {
        final Edge e = (Edge) i.next();
        e.getEdgeIntersectionList().addSplitEdges(splitEdges);
    }
    return splitEdges;
}
Also used : SimpleMCSweepLineIntersector(com.revolsys.geometry.geomgraph.index.SimpleMCSweepLineIntersector) SegmentIntersector(com.revolsys.geometry.geomgraph.index.SegmentIntersector) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) EdgeSetIntersector(com.revolsys.geometry.geomgraph.index.EdgeSetIntersector) List(java.util.List) ArrayList(java.util.ArrayList) Edge(com.revolsys.geometry.geomgraph.Edge)

Aggregations

Edge (com.revolsys.geometry.geomgraph.Edge)1 EdgeSetIntersector (com.revolsys.geometry.geomgraph.index.EdgeSetIntersector)1 SegmentIntersector (com.revolsys.geometry.geomgraph.index.SegmentIntersector)1 SimpleMCSweepLineIntersector (com.revolsys.geometry.geomgraph.index.SimpleMCSweepLineIntersector)1 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 List (java.util.List)1