*trim_mesh_by_mesh

Trims intersecting meshes using the source, target, or both.

Syntax

*trim_mesh_by_mesh entity_type_source mark_id_source entity_type_target mark_id_target ?<option1>=<value1>? ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Trims intersecting meshes using the source, target, or both.

Inputs

entity_type_source
The type of source entity. Valid values are elems and comps.
mark_id_source
The ID of the mark of source entities. Valid values are 1 and 2.
entity_type_target
The type of source entity. Valid values are elems and comps.
mark_id_target
The ID of the mark of target entities. Valid values are 1 and 2.
FetchImprintedEdges=<value>
Enables 1D element creation for the intersected edges:
0 - Disabled
1 - Enabled (default). See ImprintedEdgesComp.
ImprintedEdgesComp=<value>
If FetchImprintedEdges=1 this specifies the component ID to organize the 1D elements. If not specified, a default component named ^intersected_edges is used.
ImprintOnMesh=<value>
Specifies where the imprint of the intersection edges should happen:
0 - Imprint on source entities
1 - Imprint on target entities
2 - Imprint on both source and target entities (default)
NodeMarkMask=<value>
The ID of the mark of nodes to delete or retain (deleting other clusters). If the imprint happens on the source, the marked nodes should belong to the source entity. If the imprint happens on the target, the marked nodes should be on the target entity. If the imprint happens on both the source and target, the marked nodes can be on the source or the target.
RetainMarkedNodeCluster=<value>
When NodeMarkMask has valid nodes specified, this option determines if the cluster attached to the marked nodes, bounded by the imprint edges, is to be retained or deleted:
0 - Delete
1 - Retain (default)

Examples

Example:

*createmark parts 1 "by ids" 4
*createmark parts 2 "by ids" 6
*trim_mesh_by_mesh elems 1 elems 2 ImprintOnMesh=0 FetchImprintedEdges=1 ImprintedEdgesComp=4

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

2021