Changeset 4253 for anuga_core/source/anuga/fit_interpolate/fit.py
- Timestamp:
- Feb 12, 2007, 4:20:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/fit.py
r4252 r4253 433 433 attribute_name=None, 434 434 use_cache = False): 435 args = (vertex_coordinates, triangles, point_coordinates, ) 436 kwargs = {'point_attributes': point_attributes, 437 'alpha': alpha, 438 'verbose': verbose, 439 'acceptable_overshoot': acceptable_overshoot, 440 'mesh_origin': mesh_origin, 441 'data_origin': data_origin, 442 'max_read_lines': max_read_lines, 443 'attribute_name': attribute_name 444 } 445 if use_cache is True: 446 return cache(_fit_to_mesh, 447 args, kwargs, 448 verbose=verbose, 449 compression=False) 450 else: 451 return apply(_fit_to_mesh, 452 args, kwargs) 453 454 def _fit_to_mesh(vertex_coordinates, 455 triangles, 456 point_coordinates, # this can also be a .csv/.txt file name 457 point_attributes=None, 458 alpha=DEFAULT_ALPHA, 459 verbose=False, 460 acceptable_overshoot=1.01, 461 mesh_origin=None, 462 data_origin=None, 463 max_read_lines=None, 464 attribute_name=None, 465 use_cache = False): 435 466 """ 436 467 Fit a smooth surface to a triangulation,
Note: See TracChangeset
for help on using the changeset viewer.