*nodecreateatvectorplaneintersection
Create node or point at location of intersection between two vectors or a plane and a vector.
Syntax
*nodecreateatvectorplaneintersection vector plane_or_vector vector_use plane_use point_flag
Type
HyperMesh Tcl Modify Command
Description
This command creates node or point at location of intersection between two vectors or a vector and a plane.
Inputs
- vector
- Input temporary vector ID. Plane is used to define vector such as base point of the plane is used as the base point of the vector and normal of the plane is used as vector direction.
- plane_or_vector
- Input temporary plane ID (if plane_use is 0) or vector ID (plane_use is 1, 2 or 3). In case of vector plane base point is used as vector base point and plane normal is used as vector direction.
- vector_use
- Parameter specifying whether input data specified by vector parameter is interpreted
as a plane of vector. Valid values are:
- 0, 1 - Input data specified by vector parameter is used as undirected vector (straight line that passes through the base point specified by vector parameter in the direction of the normal specified by vector parameter).
- 2 - Input data specified by vector parameter is used as directed vector (ray that starts at base point specified by vector parameter and continues in the direction of normal specified by vector parameter).
- 3 - Input data specified by vector parameter is used as finite length vector (segment that starts at base point specified by vector parameter and ends at the end of normal vector specified by vector parameter).
- plane_use
- Parameter specifying whether input data specified by
plane_or_vector parameter is interpreted as a plane of vector.
Valid values are:
- 0 - Input data specified by plane_or_vector parameter is used as plane.
- 1 - Input data specified by plane_or_vector parameter is used as undirected vector (straight line that passes through the base point specified by plane_or_vector parameter in the direction of the normal specified by plane_or_vector parameter).
- 2 - Input data specified by plane_or_vector parameter is used as directed vector (ray that starts at base point specified by plane_or_vector parameter and continues in the direction of normal specified by plane_or_vector parameter).
- 3 - Input data specified by plane_or_vector parameter is used as finite length vector (segment that starts at base point specified by plane_or_vector parameter and ends at the end of normal vector specified by plane_or_vector parameter).
- point_flag
- Parameter specifying whether nodes or points are created. Valid values are:
Examples
To create nodes at the intersections between straight line (x=1, y=2) and the plane
z=2:
*createplane 1 0.0 0.0 1.0 1.0 2.0 0.0
*createplane 2 0.0 0.0 1.0 0.0 0.0 2.0
*nodecreateatvectorplaneintersection 1 2
To create points at the intersection between ray that starts at point (1,2,4) and
propagates in the direction of y axis and a ray that starts at point (1, 4, 0) and
propagates in the direction of z axis:
*createplane 1 0.0 1.0 0.0 1.0 2.0 4.0
*createplane 2 0.0 0.0 4.0 1.0 4.0 0.0
*nodecreateatvectorplaneintersection 1 2 2 2 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
10.0