Import DXF Files¶
In [1]:
Copied!
import geolime as geo
import pyvista as pv
pv.set_jupyter_backend('static')
import geolime as geo
import pyvista as pv
pv.set_jupyter_backend('static')
Surface¶
In [2]:
Copied!
surface = geo.surface_from_dxf(
name="rocklea_surface",
file_path="../../../geolime/datasets/rocklea_dome/Hardey_HR_DTM.dxf"
)
surface = geo.surface_from_dxf(
name="rocklea_surface",
file_path="../../../geolime/datasets/rocklea_dome/Hardey_HR_DTM.dxf"
)
/home/hadrienmeyer/.virtualenvs/geolime_310/lib/python3.10/site-packages/pyogrio/raw.py:337: RuntimeWarning: Non closed ring detected. To avoid accepting it, set the OGR_GEOMETRY_ACCEPT_UNCLOSED_RING configuration option to NO table = reader.read_all()
In [3]:
Copied!
surface.to_pyvista().plot()
surface.to_pyvista().plot()
Solid¶
In [4]:
Copied!
solid = geo.solid_from_dxf(
name="rocklea_solid",
file_path="../../../geolime/datasets/rocklea_dome/domain_mesh.dxf"
)
solid = geo.solid_from_dxf(
name="rocklea_solid",
file_path="../../../geolime/datasets/rocklea_dome/domain_mesh.dxf"
)
In [5]:
Copied!
solid.to_pyvista().plot()
solid.to_pyvista().plot()