Mercurial > repos > greg > icqsol_scale_shape
comparison icqsol_utils.py @ 5:c3b8705325ea draft
Uploaded
| author | greg |
|---|---|
| date | Mon, 11 Jan 2016 09:37:15 -0500 |
| parents | 22bb80483a8d |
| children | 22929b6a7008 |
comparison
equal
deleted
inserted
replaced
| 4:89216e1c25b8 | 5:c3b8705325ea |
|---|---|
| 44 | 44 |
| 45 def get_laplace_solver(shape_data, max_edge_length=float('inf')): | 45 def get_laplace_solver(shape_data, max_edge_length=float('inf')): |
| 46 return LaplaceMatrices(shape_data, max_edge_length=max_edge_length) | 46 return LaplaceMatrices(shape_data, max_edge_length=max_edge_length) |
| 47 | 47 |
| 48 | 48 |
| 49 def get_shape_manager(format, dataset_type): | 49 def get_shape_manager(format=None, dataset_type=None): |
| 50 # Instantiate a ShapeManager. | 50 # Instantiate a ShapeManager. |
| 51 if format is None and dataset_type is None: | |
| 52 return ShapeManager() | |
| 51 if format == VTK: | 53 if format == VTK: |
| 52 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type) | 54 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type) |
| 53 else: | 55 else: |
| 54 return ShapeManager(file_format=format) | 56 return ShapeManager(file_format=format) |
| 55 | 57 |
