*repair_midmesh_line_imprinter

Imprint geometric lines to the mesh in the direction provided by the user.

Syntax

*repair_midmesh_line_imprinter line_list_id ?options?

Type

HyperMesh Tcl Modify Command

Description

This command can be used to imprint geometric lines to the mesh in the direction provided by the user.

Note: If free lines and surface edges are selected together and ProjectionDirection is not provided, the projection direction for the free lines will always be by shortest distance. Other directions will be used only for surface edges.

Inputs

line_list_id
The ID of the line list, created with *createlist to use as input. Valid values are 1 and 2.
options
List of input options, passed as a space separated string enclosed in quotes. Valid options are:
GuideSurfaceMark=<mark_id>
The ID of the mark of surfaces to consider for the imprint direction calculation. Valid values are 1 and 2.
LineEndSnapTolerance=<value>
The tolerance to snap the end of the line to nearby vertex/face boundary edges. Vertex is preferred over the face boundary edges. Vertex nodes are identified based on the turning angle (45 degree) and the number of 1D elements connected (>2). Default is minimum element size.
ProjectionDirection=<x> <y> <z>
The vector in which the lines are to be projected.
ProjectionType=<value>
0 - Shortest distance
1 - Tangential to the GuideSurfaceMark surfaces
2 - Average normal to the GuideSurfaceMark surfaces
3 - The direction given by ProjectionDirection
ProjectOnElemsMark=<mark_id>
The ID of the mark of elements to consider for imprinting. Valid values are 1 and 2.

Examples

To imprint line 4905 onto elements 3000-4000, using a snap tolerance of 1:

*createlist lines 1 4905
*createmark elements 1 3000-4000
*repair_midmesh_line_imprinter 1 "ProjectOnElemsMark=1 LineEndSnapTolerance=1 ProjectionDirection=0.0 0.0 1.0 ProjectionType=3"

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

2019

2020 - Added new options GuideSurfaceMark, ProjectionDirection and ProjectionType.