Skip to main content

M3dmeasDraw3d

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Draw specific features of templates, paths, profiles, or markers into a 3D graphics list.

Syntax

AIL_INT64 M3dmeasDraw3d(
AIL_ID OperationDraw3dContext3dmeasId, //in
AIL_ID SrcResult3dmeasId, //in
AIL_INT64 PathOrTemplateIndex, //in
AIL_INT64 ProfileIndex, //in
AIL_INT64 MarkerIndex, //in
AIL_ID DstList3dgraId, //out
AIL_INT64 DstParentLabel, //in
AIL_INT64 ControlFlag //in
)

Description

This function draws specific template, path, profile, or marker features, stored in the specified 3D measurement result buffer, into a 3D graphics list. Set the draw operations and options for the draw using M3dmeasControlDraw.

Parameters

OperationDraw3dContext3dmeasId (in, AIL_ID)

Specifies the identifier of the draw 3D measurement context that specifies the annotations to draw and how to draw them.

For specifying the draw 3D measurement context

ValueDescription
M_DEFAULTSpecifies a predefined draw 3D measurement context.

The default context is predefined with all draw operations (M3dmeasControlDraw) set to use default settings. | | Draw 3D measurement context identifier | Specifies a valid draw 3D measurement context identifier, which you have allocated using M3dmeasAlloc with M_DRAW_3D_PATH_CONTEXT, M_DRAW_3D_PROFILE_CONTEXT, or M_DRAW_3D_TEMPLATE_CONTEXT. |

SrcResult3dmeasId (in, AIL_ID)

Specifies the identifier of the profile, path, or template 3D measurement result buffer, previously allocated using M3dmeasAllocResult with M_FIND_MARKER_PROFILE_RESULT, M_FIND_MARKER_PATH_RESULT, or M_FIND_MARKER_TEMPLATE_RESULT, respectively.

PathOrTemplateIndex (in, AIL_INT64)

Specifies the path or template to draw. Set this parameter to one of the following values:

For specifying a template or path

ValueDescription
M_PATH_INDEXSpecifies the path in the path 3D measurement result buffer to draw, if one is specified.
M_TEMPLATE_INDEXSpecifies the template in the template 3D measurement result buffer to draw, if one is specified.
M_DEFAULT_TEMPLATESpecifies to draw the default template in the profile 3D measurement result buffer, if one is specified.

Note that the default template in a profile 3D measurement context is different from an explicitly defined template in a template 3D measurement context. The default template is inherent to the supplied profiles, such that it is the theoretical template that would result in these profiles. Note, unlike for the profiles perpendicular to the template in a template 3D measurement context, multiple markers can be found along the profiles perpendicular to the default template in a profile 3D measurement context. |

ProfileIndex (in, AIL_INT64)

Specifies the profile to draw. Set this parameter to one of the following values:

For specifying a profile

ValueDescription
M_DEFAULTSame as M_PROFILE_INDEX().
M_PROFILE_INDEXSpecifies the profile in the specified 3D measurement result buffer to draw.

MarkerIndex (in, AIL_INT64)

Specifies the marker to draw. Set this parameter to one of the following values:

For specifying a marker

ValueDescription
M_DEFAULT
M_ALL (default)Specifies to draw features of all the markers.
Value >= 0Specifies the index of the markers for which to draw features.

DstList3dgraId (out, AIL_ID)

Specifies the identifier of the 3D graphics list in which to draw. The 3D graphics list must have been previously allocated using M3dgraAlloc, or you can specify the identifier of the 3D display's internal graphics list (inquired using M3ddispInquire with M_3D_GRAPHIC_LIST_ID).

DstParentLabel (in, AIL_INT64)

Specifies the label of the 3D graphic in the 3D graphics list to use as the annotation's parent.

For specifying the parent label

ValueDescription
M_DEFAULT
M_ROOT_NODE (default)Specifies the top-most node of the 3D graphics list.
Value >= 0Specifies the label of the 3D graphic in the 3D graphics list.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Return Value

Type: AIL_INT64

Returns the label of the 3D graphic added to the 3D graphics list.

Copyright © 2026 Zebra Technologies.