*imprint_elements
Imprints, connects and optionally remeshes source 1D/2D elements onto target 2D elements.
Syntax
*imprint_elements entity_type_target mark_id_target entity_type_source mark_id_source ?options?
Type
HyperMesh Tcl Modify Command
Description
Imprints, connects and optionally remeshes source 1D/2D elements onto target 2D elements.
Inputs
- entity_type_target
- The type of entity to use as the target (destination) for the imprint. Valid values are components and elements.
- mark_id_target
- The ID of the mark containing the target entities to imprint onto. Valid values are 1 and 2.
- entity_type_source
- The type of entity to use as the source for the imprint. Valid values are components and elements.
- mark_id_source
- The ID of the mark containing the source entities to imprint. Valid values are 1 and 2.
- options
- Additional strings defining extended parameters/options. Options are defined in "name
value(s)" format. Valid options are:
- projection_vector xyz
- 3 doubles defining the vector direction. If not defined, normal projection is used.
- remain value
- 1 - Source remains, source node coordinates are kept (default if not provided).
- max_distance value
- The command will exit with an error if the distance between source and destination exceeds this value. If not specified, this is ignored.
- to_dest_component value
- 0 - Do not organize imprinted elements to destination component (default if not provided).
- angle value
- The angle used to define feature edges on the mesh. If not defined, 25.0 is used.
- remesh_mode value
- -1 - No remesh. Element connectivity is maintained by recovery of the imprinting element edges.
- remesh_layers value
- Must be defined if remesh_mode is 2.
- mesh_type value
- Automatically detected from input mesh if not provided.
- mesh_size value
- Automatically detected from input mesh if not provided.
- create_joint_elems value
- Only valid when remain is 3.
Example
To imprint elements from component named "conn_imprint" to component named "auto1", using a normal projection, a feature angle of 30, keeping the source, and remeshing the destination using 2 layers:
*createmark components 2 "auto1"
*createmark components 1 "conn_imprint"
*imprint_elements components 2 components 1 "remain 1 remesh_mode 2 remesh_layers 2 angle 30.0"
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
11.0.130