*mm_align
Edits or aligns the midmesh.
Syntax
*mm_align command=<value> ?entitytype=<value>? ?entitymark=<mark_id>? ?entitylist=<list_id>? ?merge=<value>?
Type
HyperMesh Tcl Modify Command
Description
Edits or aligns the midmesh. Also provides the method to initialize the required data object and clean it after the performed operation.
Inputs
- command=<value>
- The command that needs to be executed. Valid values are:
- entitytype=<value>
- The type of entities that are passed as selection. Applicable only when command=correct_extrusions. Valid values are surfaces and components.
- entitymark=<mark_id>
- The mark of entities that are passed as selection. Applicable only when command is set to correct_extrusions. Valid values are 1 and 2.
- entitylist={<id1> <id2> … <idN>}
- The list of entity IDs that are passed as selection. Applicable only when command is set to correct_extrusions.
- merge=<value>
- Applicable only when command is set to correct_extrusions. Valid values are true (default) and false. If set to true, small surfaces are merged with neighboring larger surfaces, and minor edges are suppressed.
Examples
To automatically correct an extruded midmesh:
*mm_align command=begin
*createmark surfs 1 displayed
*mm_align command=correct_extrusions entitytype=surfs entitymark=1
*mm_align command=end
To automatically correct an extruded midmesh without merging small surfaces to
neighbors:
*mm_align command=begin
*mm_align command=correct_extrusions entitytype=surfs entitylist={1 2} merge=false
*mm_align command=end
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2025