| Customize Help
| Save Settings

M3dgeoAlloc



Function Map
Synopsis
Allocate a 3D geometry object or transformation matrix object.
Syntax
MIL_ID M3dgeoAlloc(
MIL_ID SysId, //in
MIL_INT64 ObjectType, //in
MIL_INT64 ControlFlag, //in
MIL_ID *GeometryOrMatrix3dgeoIdPtr //out
)
Description

This function allocates a 3D geometry object or transformation matrix object on the specified system.

Note that 3D geometry objects or transformation matrix objects allocated with M3dgeoAlloc() can be saved using either M3dgeoStream() or M3dgeoSave() and restored using M3dgeoRestore().

When the 3D geometry object or transformation matrix object is no longer required, you should release its memory, using M3dgeoFree().

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
SysId

Specifies the identifier of the system on which to allocate the 3D geometry object or transformation matrix object.

function map For specifying the system identifier
Click to summarizeValue Description
Click to summarize M_DEFAULT_HOST

Specifies the default Host system of the current MIL application.

Click to summarize MIL system identifier

Specifies a valid system identifier, previously allocated using MsysAlloc().

ObjectType

Specifies to allocate a 3D geometry object or transformation matrix object. This parameter must be set to one of the following:

function map For specifying the object type
Click to summarizeValue Description
Click to summarize M_GEOMETRY

Allocates a 3D geometry object on the specified system.

Click to summarize M_TRANSFORMATION_MATRIX

Allocates a transformation matrix object on the specified system.

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

GeometryOrMatrix3dgeoIdPtr

Specifies the address of the variable in which to write the 3D geometry object or transformation matrix object identifier. Since the M3dgeoAlloc() function also returns the identifier, you can set this parameter to M_NULL.

Return value
The returned value is the 3D geometry object or transformation matrix object identifier if allocation is successful. If allocation fails, M_NULL is returned.
Compilation information
Header Include mil.h.
Library Use mil.lib; mil3d.lib.
DLL Requires mil.dll; mil3d.dll.
DEFAULT HOST GEOMETRY TRANSFORMATION MATRIX