*elementqualityswapedgenew

Switches the connectivity of the two elements that share the specified edge to the next legal configuration.

Syntax

*elementqualityswapedgenew element_id edge_index

Type

HyperMesh Tcl Modify

Description

This command switches the connectivity of the two elements that share the specified edge to the next legal configuration.

This command only functions between an *elementqualitysetup command and an *elementqualityshutdown command.

Inputs

element_id
The element ID.
edge_index
The index of the edge to swap, starting from 0.

Example

To swap elements 27 edge 3, 22 edge 0, 21 edge 2 and 26 edge 1:
*createmark elems 1 displayed
*elementqualitysetup 1
*elementqualityswapedgenew 27 3
*elementqualityswapedgenew 22 0
*elementqualityswapedgenew 21 2
*elementqualityswapedgenew 26 1
*elementqualityshutdown 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

12.0.110