Datagrid SurfaceΒΆ

The Datagrid Geometry example surface.

../../_images/blender_jacksboro.png
import numpy as np
import s3dlib.surface as s3d

#.. Datagrid Geometry

# 1. Define function to examine .....................................

z=np.load('data/jacksboro_fault_dem.npz')['elevation']
datagrid = np.flip( z[5:50, 5:50], 0 )

# 2. Setup and map surfaces .........................................
rez=5

surface = s3d.PlanarSurface(rez)
surface.map_geom_from_datagrid( datagrid )
s3d.save_surfgeom_to_obj("obj_files/jacksboro_surface.obj",surface)