Closed millerta closed 1 day ago
Here is a small petrel style format that produces the error in lagrit.
GOCAD TSurf 1
HEADER {
name:Argenta
*border:on
*border*bstone:on
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
AXIS_NAME "X" "Y" "Z"
AXIS_UNIT "m" "m" "m"
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
TFACE
VRTX 0 465534.6194 5931401.282 -129.3047898
VRTX 1 465538.213 5931392.781 -129.3047898
VRTX 2 465539.8068 5931392.781 -131.7332567
VRTX 3 465570.9632 5931423.783 -198.6034981
VRTX 4 465525.1194 5931423.783 -129.3047898
VRTX 5 465570.9632 5931423.783 -198.6034981
TRGL 0 1 2
TRGL 2 3 0
TRGL 4 0 5
END
fixed by checking for 0 based VRTX numbering and adding 1 to their ID numbers
This does not happen all the time, the file is read but when AVS is written there is 0 indexing.
/project/meshing/CO2_IBDP/grid_gen/horizon_surfaces