Open copycd opened 4 years ago
public static int toTree(List list , int idstart) { // I changed the code below; Boolean isInside = GeometryUtil.pointInPolygon(p.getSegments().get(0) , list.get(j)); if( isInside != null && isInside == true ){ list.get(j).getChildren().add(p); p.setParent(list.get(j)); isChild = true; break; } }
public static int toTree(List list , int idstart)
{
// I changed the code below;
Boolean isInside = GeometryUtil.pointInPolygon(p.getSegments().get(0) , list.get(j));
if( isInside != null && isInside == true ){
list.get(j).getChildren().add(p);
p.setParent(list.get(j));
isChild = true;
break;
}
}