1
"""``omfvista``: 3D visualization for the Open Mining Format (omf)
2
"""
3

4 4
from omfvista.wrapper import wrap, project_to_vtk, load_project
5 4
from omfvista.lineset import line_set_to_vtk
6 4
from omfvista.pointset import point_set_to_vtk
7 4
from omfvista.surface import surface_geom_to_vtk, surface_grid_geom_to_vtk, surface_to_vtk
8 4
from omfvista.volume import volume_grid_geom_to_vtk, volume_to_vtk
9 4
from omfvista.utilities import *
10

11

12
# Package meta data
13 4
__author__ = 'Bane Sullivan'
14 4
__license__ = 'BSD-3-Clause'
15 4
__copyright__ = '2019, Bane Sullivan'
16 4
__version__ = '0.2.2'
17 4
__displayname__ = 'OMF-VTK'
18 4
__name__ = 'omfvista'
19

20

21 4
def ignore_warnings():
22
    """Sets a warning filter for pillow's annoying ``DecompressionBombWarning``
23
    """
24 4
    import warnings
25 4
    from PIL import Image
26 4
    warnings.simplefilter(action='ignore', category=Image.DecompressionBombWarning)
27

28 4
ignore_warnings()
29

30

31 4
def download_forge_example():
32
    """Download and load the FORGE geothermal prroject data."""
33 0
    from pyvista import examples
34 0
    print("Downloading FORGE data... Please be patient.")
35 0
    filename, _ = examples.downloads._download_file('FORGE.omf')
36 0
    print("FORGE Data Downloaded!")
37 0
    return load_project(filename)

Read our documentation on viewing source code .

Loading