hm_findconnectedpatches

Returns patches of connected elements.

Syntax

hm_findconnectedpatches entity_type mark_id

Type

HyperMesh Tcl Query Command

Description

Finds connected patches of elements and returns the elements in each connected patch as a list. For example:

{1 2 3 4} {5 6 7 8 9} {10 11}

Inputs

entity_type
The type of entity to query. Only elements are currently supported.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.

Example

To get the connected element patches for the displayed elements:

*createmark elems 1 displayed
set conn_elem_lists [hm_findconnectedpatches elems 1]

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

14.0