HMIN_form_system_with_nodes()

Creates a system from three nodes and writes the information to HyperMesh.

Syntax

HMIN_form_system_with_nodes(HM_entityidtype id, int type, char code, double origin[3], double axis[3], double plane[3], HM_entityidtype systemcollectorid)

Type

HyperMesh hminlib Function

Description

Creates a system from three nodes and writes the information to HyperMesh, even if the system is invalid (that is, axis nodes are coincident).

Inputs

id
The ID of the system.
type
The type of system to be written.
  • 0 - For a Cartesian system.
  • 1 - For a cylindrical system.
  • 2 - For a spherical system.
code
The code value is used to determine which point defines two of the three X, Y, or Z vectors of the system. The third vector is then defined by calculating the cross product of the origin to axis and origin to plane vectors. Code is interpreted by HMIN_unpacksystemcode() in the following manner:
  • 1 Axis determines X vector of system.
  • Plane determines Y vector of system.
  • 2 Axis determines X vector of system.
  • Plane determines Y vector of system.
  • 3 Axis determines Y vector of system.
  • Plane determines X vector of system.
  • 4 Axis determines Y vector of system.
  • Plane determines Z vector of system.
  • 5 Axis determines Z vector of system.
  • Plane determines Y vector of system.
  • 6 Axis determines Z vector of system.
  • Plane determines X vector of system.
origin
The coordinates of the point which specify the system's origin.
axis
The coordinates of the point which specify the system's axis.
plane
The coordinates of the point which specify the plane of the system.
systemcollectorid
The ID of the system collector.