public boolean check_shape(ShapeTile[] tiles,int p_layer,NetNosList p_net_no_arr,int p_cl_class){
  AwtreeShapeSearch default_tree=search_tree_manager.get_default_tree();
  for (int index=0; index < tiles.length; ++index) {
    ShapeTile curr_shape=tiles[index];
    if (!curr_shape.is_contained_in(bounding_box))     return false;
    Collection<AwtreeFindEntry> obstacles=default_tree.find_overlap_tree_entries_with_clearance(curr_shape,p_layer,p_net_no_arr,p_cl_class);
    for (    AwtreeFindEntry cur_entry : obstacles) {
      AwtreeObject curr_ob=cur_entry.object;
      boolean is_obstacle=p_net_no_arr.is_obstacle(curr_ob);
      if (is_obstacle)       return false;
    }
  }
  return true;
}

public boolean check_shape ( ShapeTile [ ] tiles , int p_layer , NetNosList p_net_no_arr , int p_cl_class ) { AwtreeShapeSearch default_tree = search_tree_manager . get_default_tree ( ) ; for ( int index = 0 ; index < tiles . length ; ++ index ) { ShapeTile curr_shape = tiles [ index ] ; if ( ! curr_shape . is_contained_in ( bounding_box ) ) return false ; Collection < AwtreeFindEntry > obstacles = default_tree . find_overlap_tree_entries_with_clearance ( curr_shape , p_layer , p_net_no_arr , p_cl_class ) ; for ( AwtreeFindEntry cur_entry : obstacles ) { AwtreeObject curr_ob = cur_entry . object ; boolean is_obstacle = p_net_no_arr . is_obstacle ( curr_ob ) ; if ( is_obstacle ) return false ; } } return true ; }
checks , if the an object with shape p_shape and net nos p_net_no_arr and clearance class p_cl_class can be inserted on layer p_layer without clearance violation warning apparently p_net_no_arr is always empty , does not seems correct no ?
