Changeset 15021 in josm for trunk/src/org
- Timestamp:
- 2019-04-26T16:45:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r15008 r15021 12 12 import java.util.Collections; 13 13 import java.util.Comparator; 14 import java.util.EnumSet;15 14 import java.util.LinkedHashSet; 16 15 import java.util.List; … … 1003 1002 if (nodes.size() == 1 1004 1003 ? nodeInsidePolygon(nodes.get(0), out.getNodes()) 1005 : EnumSet.of(PolygonIntersection.FIRST_INSIDE_SECOND, PolygonIntersection.CROSSING).contains( 1006 polygonIntersection(nodes, out.getNodes()))) { 1004 : PolygonIntersection.FIRST_INSIDE_SECOND == polygonIntersection(nodes, out.getNodes())) { 1007 1005 boolean insideInner = false; 1008 1006 // If inside an outer, check it is not inside an inner 1009 1007 for (JoinedPolygon in : outerInner.b) { 1010 if ( polygonIntersection(in.getNodes(), out.getNodes()) == PolygonIntersection.FIRST_INSIDE_SECOND1011 && (nodes.size() == 11012 ? nodeInsidePolygon(nodes.get(0), in.getNodes())1013 : polygonIntersection(nodes, in.getNodes()) == PolygonIntersection.FIRST_INSIDE_SECOND)) {1008 if (nodes.size() == 1 ? nodeInsidePolygon(nodes.get(0), in.getNodes()) 1009 : polygonIntersection(nodes, in.getNodes()) == PolygonIntersection.FIRST_INSIDE_SECOND 1010 && polygonIntersection(in.getNodes(), 1011 out.getNodes()) == PolygonIntersection.FIRST_INSIDE_SECOND) { 1014 1012 insideInner = true; 1015 1013 break;
Note:
See TracChangeset
for help on using the changeset viewer.