hm_proximitymarkcomponentallelementpairs

Marks the element pairs for a specific component pair.

Syntax

hm_proximitymarkcomponentallelementpairs component_pair_index mark_id1 mark_id2

Type

HyperMesh Tcl Query

Description

Marks the element pairs for a specific component pair.

This must be preceded by a call to hm_proximityinit and followed by a call to hm_proximityend.

Inputs

component_pair_index
The index of the component pair. This starts from 0 and must be less that the value returned by hm_proximitygetcomponentpaircount.
mark_id1
The output mark on which the elements for the first component are placed.
mark_id2
The output mark on which the elements for the second component are placed.

Example

To calculate the proximity between all comps using a max distance of 2.5 and to query the component pairs:

*createmark comps 1 all
hm_proximityinit comps 1 2.5
set comp_pair_count [hm_proximitygetcomponentpaircount]
for {set i 0} {$i < $comp_pair_count} {incr i} {
   set comp_pair [hm_proximitygetcomponentpair $i]
puts "Component pair $i: $comp_pair"
hm_proximitymarkcomponentallelementpairs $i 1 2
puts "    Element pairs 1: [hm_getmark elems 1]"
puts "    Element pairs 2: [hm_getmark elems 2]"
}
hm_proximityend

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