| Customize Help
| Save Settings

M3dimAlloc



Function Map
Synopsis
Allocate a 3D image processing context.
Syntax
MIL_ID M3dimAlloc(
MIL_ID SysId, //in
MIL_INT64 ContextType, //in
MIL_INT64 ControlFlag, //in
MIL_ID *Context3dimIdPtr //out
)
Description

This function allocates a 3D image processing context on the specified system. When the 3D image processing context is no longer required, you should release its memory, using M3dimFree().

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 image processing context.

function map For specifying the system
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().

ContextType

Specifies the type of 3D image processing context to allocate. This parameter must be set to one of the following:

function map For specifying the context type
Click to summarizeValue Description
Click to summarize M_CALCULATE_MAP_SIZE_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimCalculateMapSize().

Click to summarize M_FILL_GAPS_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimFillGaps().

Click to summarize M_MESH_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimMesh().

Click to summarize M_NORMALS_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimNormals().

Click to summarize M_STATISTICS_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimStat().

Click to summarize M_SUBSAMPLE_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimSample() to perform subsampling.

Click to summarize M_SURFACE_SAMPLE_CONTEXT

Specifies to allocate a 3D image processing context that can be used with M3dimSample() to perform surface sampling.

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Context3dimIdPtr

Specifies the address of the variable in which to write the 3D image processing context identifier. Since the M3dimAlloc() function also returns the identifier, you can set this parameter to M_NULL.

Return value
The returned value is the 3D image processing context identifier if allocation is successful. If allocation fails, M_NULL is returned.
Compilation information
Header Include mil.h.
Library Use mil.lib; mil3dim.lib.
DLL Requires mil.dll; mil3dim.dll.
DEFAULT HOST CALCULATE MAP SIZE CONTEXT FILL GAPS CONTEXT MESH CONTEXT NORMALS CONTEXT STATISTICS CONTEXT SUBSAMPLE CONTEXT SURFACE SAMPLE CONTEXT