Ignore:
Timestamp:
May 7, 2010, 12:25:58 PM (14 years ago)
Author:
hudson
Message:

Refactored quadtree interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/general_fit_interpolate.py

    r7690 r7710  
    5454                 mesh=None,
    5555                 mesh_origin=None,
    56                  verbose=False,
    57                  max_vertices_per_cell=None):
     56                 verbose=False):
    5857
    5958
     
    8281              relative to their respective origins.
    8382
    84           max_vertices_per_cell: Number of vertices in a quad tree cell
    85           at which the cell is split into 4.
    86 
    8783          Note: Don't supply a vertex coords as a geospatial object and
    8884              a mesh origin, since geospatial has its own mesh origin.
    8985        """
    9086        global build_quadtree_time
    91         if max_vertices_per_cell == None:
    92             max_vertices_per_cell = MAX_VERTICES_PER_CELL
    9387        if mesh is None:
    9488            if vertex_coordinates is not None and  triangles is not None:
     
    113107            #This stores indices of vertices
    114108            t0 = time.time()
    115             self.root = build_quadtree(self.mesh,
    116                                        max_points_per_cell = max_vertices_per_cell)
     109            self.root = build_quadtree(self.mesh)
    117110       
    118111            build_quadtree_time =  time.time()-t0
Note: See TracChangeset for help on using the changeset viewer.