Generating a CAD model using GOCAD: basic tutorial
Two *.dat files contain the structured point clouds representing the topographic layer and the fault. The *.pl file (Gocad ASCII File format) describes 2 manually set curves used for defining the model extend.
Triangulating structured point clouds
python3 create_surface_from_structured_grid.py --NX 161 topography.dat topography.ts
python3 create_surface_from_structured_grid.py topography.dat topography.ts
CAD model generation in GOCAD
Tools > cut > mutual cut among surfaces > select side surface, fault and topography. Tools > Part > delete selection: click on the portion of the fault surface higher than the topography. Then on the part of the side surface higher than the topography.
Alternative way of Creating the side surface
A third option for creating the side surface
python3 change_depth_pl_curve.py ctopo.pl ctopo_new.pl --depth 60e3
Exporting and converting to stl
Now the triangulation of all surfaces of the CAD model is conforming, and we can export the CAD surface in a ts format.
python3 convertTs.py test.ts