*linecreateatplanesintersection

Create a line at the intersection of two planes.

Syntax

*linecreateatplanesintersection plane1 plane2 length_option length

Type

HyperMesh Tcl Modify Command

Description

This command creates a line at the intersection of two input planes. Only a finite intersection segment line is created, as defined by the input parameters length_option and length. An error is returned if the input planes are parallel or coincide.

Inputs

plane1
ID of the first temporary plane created using *createplane.
plane2
ID of the second temporary plane created using *createplane.
length_option
Parameter specifying how the finite segment line is created. Valid options are:
  • 0 - Base node of the first plane is projected to segment center; length is used as segment length
  • 1 - Base node of the first plane is projected to segment start (see comments); length is used as segment length
  • 2 - Base node of the first plane is projected to segment end (see comments); length is used as segment length
  • 3 - Base node of the first plane is projected to segment start, base node of the second plane is projected to segment end (an error is generated if the length of the resulted segment is zero)

For options 1 and 2, the direction of the intersection segment is defined by the direction of the cross product vector between the normal of the first plane and the normal of the second plane.

length
When not ignored by length_option parameter then specifies the length of resulted intersection curve segment.

Example

To create an intersection segment between planes x=0 and y=0 with the center at point (1,2,3) and having a length of 3.62:

*createplane 1 1 0 0 1 2 3
*createplane 2 0 1 0 1 2 3
*linecreateatplanesintersection 1 2 0 3.62

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