SolidMesh Save State
The save state file retains all connectivity, geometry, and mesh attributes
and certain interface information. It is an ASCII file 80 characters wide
terminated by a newline, so it is readible, but may be indiscernible.
The information can be broken down into 7 categories: String, Interface,
CAPRI, Field, Directory, Parameter, and Terminator. A corresponding letter will appear on the line at the 80th character.
- String: General information, more like comments. Indicates
SolidMesh version and compilation that wrote save state. This information is
ignored during processing and is only provided to the user.
- Interface: Text fields and widget settings are written here.
Mainly, anything that is needed to regenerate the mesh.
Could be edited, but be aware of what you are doing.
- CAPRI: The modellers and filenames of the CAPRI data is saved here. Should not be edited.
- Field: This line specifies the format of the directory information.
This line should not be edited.
- Directory: The type of data, location in parameter data, and
attributes are written here.
The order of directory information is vectors, faces, edges, vertices, loops, composites, groups, and levels.
There are 10 entries: entity type, parameter line,
topology type (form), level, version, ID, status, label,
entity number, sequence number.
- enttype
- 106: Vector data
- 116: Vertex data
- 125: Derived curve data
- 126: NURBS curve data
- 127: Discrete curve data
- 128: NURBS surface or trimmed surface data
- 129: Discrete surface data
- 142: Parametric curve data (assigns curve to underlying surface if a trimming curve)
- 314: Color attributes
- 401: Composite surface data
- 402: Group data
- 403: Level data
- 406: Name data
- 407: Point spacing data
- 408: Edge grid data
- 409: Face grid data
- 410: Bounday Layer data
- 502: Vertex use data
- 504: Edge use data
- 505: Loop data
- 510: Face use Data
- param: Indicates the corresponding line number in the parameter data record.
- topology type (form): SolidMesh topology bit mask.
- 0: none
- 33: Vertex Use
- 34: Edge Use
- 36: Face Use
- 65: Derived Point
- 129: Physical Point
- 1025: Discrete Point
- 66: Derived Curve
- 130: Physical Curve
- 258: Parametric Curve
- 770: Trimming Curve
- 1026: Discrete Curve
- 2050: Composite Curve
- 10242: Loop
- 132: NURBS Surface
- 516: Trimmed Surface
- 1028: Discrete Surface
- 2052: Composite Surface
- level: Currently not used.
- version: Version number of current parameter data.
- ID: Corresponding seqnum that the uses are attached or indicates CapriID flag for geometry (enttypes of 126 or 128).
- status: mask to indicate deleted, active, and visible flags
- label: A textual decription of the entity.
- entity number: A running count of the number of entities of this type have been written.
- seqnum: This is how data is retrieved and it is unique.
Parameter data entries refer to seqnum.
- Parameter: The corresponding parameter data to build the enttype.
Indicates corresponding seqnums and other pertinent information to rebuild data.
- Terminator: Last line of file. Reports number of lines written in each category.
The procedure to read and write the data is similar to the IGES reader and writer.
During reading/writting, a corresponding data files are written in
the temporary SolidMesh directory (either in /var/tmp or /usr/tmp or $TMPDIR). The last step of the writer concatenates
the files together. The directory is removed at completion.