*morphaltercurvectr

Alter the radius, curvature, or arc angle of edge or 2D domains on mark.

Syntax

*morphaltercurvectr domtype dommark nodetype holdnode type curve sym con hold mode node plane line project force add

Type

HyperMesh Tcl Modify Command

Description

Alter the radius, curvature, or arc angle of edge or 2D domains on mark.

Inputs

domtype
DOMAINS
dommark
Domain mark number
nodetype
NODES
holdnode
Node mark number
type
The type of alteration to be made:
0 - Alter radius
1 - Alter curvature
2 - Alter arc angle
curve
Numerical value by which to alter the curve; actual effect depends on the type previously specified and the value of the add flag listed at the end of the command:
If type = 0 - New radius
type = 1 - Curvature multiplier
type = 2 - New arc angle
add =1 and type = 0 - Number added to radii
add =1 and type = 2 - Number added to arc angle
sym
0 - Do not use symmetry (only option)
con
Flag to use/not use constraints:
0 - Do not use constraints
1 - Use constraints
hold
Specifies which part of the curve to anchor:
0 - Hold angle
1 - Hold ends
2 - Hold center
mode
Method of determining center or edges of curve:
0 - Edge approximation, use symmetry
1 - Use axis for center
2 - Use line for center
3 - Infer center using normals
4 - Use node for center
5 - Edge approximation, do not use symmetry
node
ID of node
plane
Mark number of plane
line
ID of line
project
Flag to project curve edges to a plane:
0 - Do not project edges to plane
1 - Project edges to plane
force
Flag to force circular edges when using edge approximation (mode option 5):
0 - Do not force edges to be circular (edge approximation only)
1 - Force edges to be circular (edge approximation only)
add
Determines whether the value specified for curve is added to the existing curve’s value, or replaces it:
0 - Use 'curve' as target value
1 - Add 'curve' to current value(s)

Example

*morphaltercurvectr (DOMAINS,1,NODES,1,1,5.0,0,1,0,0,32,1,43,0,0,0)

The domains on the marks will have either their radius, curvature, or arc angle altered depending on 'type'. If add is set to 1, 'curve; will be added to the current radii or arc angle of the selected domains, otherwise the radii or arc angle will be set to 'curve'.

This command allows you to choose the mode used to determine the center for the selected domains. Only one of 'node', 'plane', or 'line' needs to be filled in depending on mode (or none if 0, 3, or 5 is selected).

Setting project to 1 will force the nodes for an edge to lie in a plane as part of the altered curve. Setting force to 1 will force the calculated center for each node of an edge to be the same point, thus forcing the edge to be circular after the curve is altered.

If constraints are used they will be applied to the perturbations. Symmetry is not supported for *morphaltercurvectr().

Errors

None.