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¶
python createGOCADTSurfNXNY.py --NX 161 topography.dat topography.ts
python createGOCADTSurfNXNY.py ScecRoughFault.dat fault.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¶
python ChangeDepthPl.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.