*surfacecreatespinlinewithoffsetangle
Spins lines to create surfaces by specifying a start and end angle.
Syntax
*surfacecreatespinlinewithoffsetangle mark_id rotation_plane start_angle end_angle options
Type
HyperMesh Tcl Modify
Description
Spins lines to create surfaces by specifying a start and end angle.
Inputs
- mark_id
- The mark ID containing the lines that you wish to spin.
- rotation_plane
- The axis about which to spin the lines (plane normal is used as axis vector and the base point of the plane is used as the rotation center).
- start_angle
- Degrees value of initial rotation angle: selected lines are rotated by this value before surface “sweeping” begins.
- end_angle
- Degrees value of final rotation angle: surface “sweeping” stops at this value.
- options
- Flags that indicate different modes. Bit values are used and the value is calculated
as (Bit0 + 2*Bit1).
- Bit0
- Line merging mode. Valid values are:
- 0 – Do not merge input lines. A surface is created for each input line.
- 1 – Merge input lines into smooth lines when possible. A surface is created for each group that forms tangentially continuous line.
- Bit1
- Specifies how entities are organized into components. Valid values are:
- 0 – Surfaces are created in the current component.
- 1 – Surfaces are created in the most common input lines component.
Example
To spin line 2 from 45 to 90 degrees about an axis given by the vector (1 2 3) with rotation center at point (4 5 6), creating a surface of revolution in current component:
*createmark lines 1 2
*createplane 1 1 2 3 4 5 6
*surfacecreatespinlinewithoffsetangle 1 1 45 90 0
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
10.0