*solidcone
Create a full or partial cone or cylindrical solid.
Syntax
*solidcone base_x base_y base_z mvec_x mvec_y mvec_z nvec_x nvec_y nvec_z base_radius top_radius aspect_ratio start_angle end_angle height
Type
HyperMesh Tcl Modify Command
Description
This command creates a full or partial cone or cylindrical solid.
Inputs
- base_x, base_y, base_z
- base_x, base_y, base_z
- mvec_x, mvec_y, mvec_z
- The x, y and z coordinates specifying the major axis vector direction from the base location.
- nvec_x, nvec_y, nvec_z
- The x, y and z coordinates specifying the normal vector (along the length) from the base location.
- base_radius
- The radius of the bottom of the cone/cylinder (at the major axis in case of elliptical cone or cylinder).
- top_radius
- The radius of the top of the cone/cylinder (at the major axis in case of elliptical cone or cylinder).
- aspect_ratio
- A value less than 1.0 creates an elliptical cone/cylinder. A value smaller than 1.0 indicates a more elliptical shape.
- start_angle
- The angle at which the cone/cylinder starts (0.0 to < end_angle). 0.0 starts at major axis.
- end_angle
- The angle at which the cone/cylinder ends (> start_angle to 360.0)
- height
- The height of the cone/cylinder.
Example
To create a full elliptical cone solid with center at (0,0,0), with major axis vector (1,0,0), normal axis vector (0,0,1), base radius of 20, top radius of 10, ratio between minor and major axis of 0.5, and a height of 30:
*solidcone 0 0 0 1 0 0 0 0 1 20 10 0.5 0 360 30
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}