*findedges

Finds element free or T-connected edges.

Syntax

*findedges entitytype=<value> entitymark=<mark_id> ?option1=<value1>? ?option2=<value2>? ... ?optionN=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

This command finds and displays element free or T-connected edges as plot elements.

Inputs

entitytype=<value>
The entity types to find edges for. Valid values are components and elements.
entitymark=<mark_id>
The ID of the mark containing the input entities. Valid values are 1 and 2.
edgetype=<value>
The type of edges to find:
  • free/boundary – Finds boundary edges that are attached to a single element.
  • tee/t – Finds T-connected edges that are attached to more than two elements.
createlines=<value>
If set to 1 or true, creates free lines instead of plot elements at edges.
smoothlines=<value>
If set to 1 or true, smooths the free lines through the nodes. Only effective when createlines is set to true.
breakangle=<value>
The angle specifying when to break the feature line created into multiple line segments when createlines is set to true. When the angle between adjoining elements along the feature is larger than the specified value, it splits the line into multiple segments.
ignorefeatures=<1/true/0/false>
If 1 or true, ignores features such as holes when finding free edges.
componentname=<value>
If given, creates or overwrites a component with the given name and creates plot elements or lines there.
componentprefix=<value>
If given, creates plot elements or lines in new components whose name is derived from the parent component of one of the attached elements. The format is “<prefix>_<original_name>_#” where original name is the name of the parent component and # is a numerical suffix that is incremented each time the command is called on the same component.
chainid=<value>
If given, groups the edges found into chains and creates plot elements or lines only for the n-th chain. If n is more than the number of chains, creates plot elements or lines for all chains.

Example

To check the free edges on all elements contained in the component named fender:
*createmark comps 1 fender
*findedges entitytype=comps entitymark=1 edgetype=free
To check the T-connected edges on all elements:
*createmark elems 1 all
*findedges entitytype=elems entitymark=1 edgetype=tee
To check the free edges and create free lines on them, breaking into separate lines on 30-degree angles, ignoring features and with name as ^edges_<original name>_#:
*createmark elems 1 all
*edgesfind entitytype=elements entitymark=1 chainid=0 edgetype=free createlines=1 breakangle=30.000000 ignoreFeatures=1 componentprefix={^edges_}

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

2023 - Updated the syntax to support name-value argument pairs and added new options edgetype, createlines, smoothlines, breakangle, ignorefeatures, componentname, componentprefix, and chainid.