Mercurial > repos > greg > icqsol_scale_shape
comparison icqsol_utils.py @ 6:22929b6a7008 draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 12 Jul 2016 15:01:01 -0400 |
| parents | c3b8705325ea |
| children |
comparison
equal
deleted
inserted
replaced
| 5:c3b8705325ea | 6:22929b6a7008 |
|---|---|
| 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=None, dataset_type=None): | 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: | 51 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type) |
| 52 return ShapeManager() | |
| 53 if format == VTK: | |
| 54 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type) | |
| 55 else: | |
| 56 return ShapeManager(file_format=format) | |
| 57 | 52 |
| 58 | 53 |
| 59 def get_temp_dir(prefix='tmp-vtk-', dir=None): | 54 def get_temp_dir(prefix='tmp-vtk-', dir=None): |
| 60 """ | 55 """ |
| 61 Return a temporary directory. | 56 Return a temporary directory. |
