| Customize Help
| Save Settings

M3dgeoDraw3d



Function Map
Synopsis
Draw the geometry, defined in the specified 3D geometry object, into a 3D graphics list.
Syntax
MIL_INT64 M3dgeoDraw3d(
MIL_ID OperationDraw3dContext3dgeoId, //in
MIL_ID SrcGeometry3dgeoId, //in
MIL_ID DstList3dgraId, //in
MIL_INT64 DstParentLabel, //in
MIL_INT64 ControlFlag //in
)
Description

This function draws a geometry, defined in the specified 3D geometry object, into the destination 3D graphics list.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
OperationDraw3dContext3dgeoId

Reserved for future expansion and must be set to M_DEFAULT.

SrcGeometry3dgeoId

Specifies the identifier of the 3D geometry object to draw into the 3D graphics list. The 3D geometry object must have been previously allocated using M3dgeoAlloc() with M_GEOMETRY, and must have been successfully defined. Supported 3D geometries include box, cylinder, line, plane, and sphere.

For geometries with infinite size, such as infinite lines, planes, and cylinders, the 3D graphics list's clipping box is used to determine the position and size of the 3D graphic. The size and position are only set when calling M3dgeoDraw3d(); they do not update if the 3D graphics list's clipping box is changed afterward.

function map For specifying the geometry object identifier
Click to summarizeValue Description
Click to summarize M_XY_PLANE

Specifies the XY (Z=0) plane.

Click to summarize MIL 3D geometry object identifier

Specifies the identifier of a 3D geometry object. The 3D geometry object must have been previously allocated using M3dgeoAlloc() with M_GEOMETRY.

(summarize)
DstList3dgraId

Specifies the identifier of the 3D graphics list in which to draw. The 3D graphics list must have been previously allocated using M3dgraAlloc().

DstParentLabel

Specifies the label of the 3D graphic in the 3D graphics list to be used as the geometry's parent.

function map For specifying the parent label
Click to summarizeValue Description
Click to summarize M_DEFAULT

Same as M_ROOT_NODE.

Click to summarize M_ROOT_NODE

Specifies the top-most node of the 3D graphics list.

Click to summarize Value >= 0

Specifies the label of the 3D graphic in the 3D graphics list. Label 0 is the 3D graphics list's root node.

(summarize)
ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Return value
Returns the label of the 3D graphic added to the 3D graphics list.
Compilation information
Header Include mil.h.
Library Use mil.lib; mil3d.lib.
DLL Requires mil.dll; mil3d.dll.
XY PLANE NOT INITIALIZED DEFAULT ROOT NODE