-
Notifications
You must be signed in to change notification settings - Fork 64
Geometric Models
AVOID THIS UNLESS YOU ARE DEBUGGING A MESH ISSUE
Use the mkmodel
tool to generate a 'null' model from a mesh:
$ module load pumi
$ mkmodel
Create a discrete geometric model from a mesh
Usage: mkmodel <mesh> <out model (.dmg)>
Note, the model created with this code only exists to debug mesh related issues. The null model works by creating a dummy model entity for the first call to retrieve classification for each mesh entity.
A .smd
Simmetrix model file is created by either translating a Parasolid or ACIS model OR by creating a Simmetrix discrete (i.e. topological info + bounding box) model from a surface mesh or otherwise.
Note, a Simmetrix .smd
file can also contain problem definition and mesh generation attributes; e.g. SimModeler saves 'models' this way.
The core tool simTranslate
does the Parasolid/ACIS conversion:
$ simTranslate
Usage: simTranslate <acis .sat or parasolid .xmt_txt> <output .smd>
to translate a native model into a GeomSim model
or: simTranslate <acis .sat or parasolid .xmt_txt> <attribute .smd> <output .smd>
to do the above and combine it with attributes into one file
The mdlConvert
tool can create a topological model ('.dmg' file extension) from a Simmetrix model file. Note, this discrete model maintains the same classification as the original model, but drops nearly all the geometry info; I believe it maintains a bounding box.
$ mdlConvert
Convert simmetrix smd model to a gmi dmg model
Usage: mdlConvert <simmetrix smd model> <gmi dmg model>
See https://github.com/SCOREC/core/blob/0b6940649ccf6e928bdcbb411eb6df7de5cb96e1/test/generate.cc#L243