Skip to main content

M3dimDraw3d

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 the result of a profile operation into a 3D graphics list.

Syntax

AIL_INT64 M3dimDraw3d(
AIL_ID OperationDraw3dContext3dimId, //in
AIL_ID SrcProfileResult3dimId, //in
AIL_ID DstList3dgraId, //out
AIL_INT64 DstParentLabel, //in
AIL_INT64 ControlFlag //in
)

Description

This function draws the profile points, stored in the specified 3D profile result buffer, into a 3D graphics list. To take a profile of a depth map, use M3dimProfile or M3dimProfileEx. To take a profile of a 3D geometry, mesh, or point cloud, use M3dimProfile.

Parameters

OperationDraw3dContext3dimId (in, AIL_ID)

Reserved for future expansion and must be set to M_DEFAULT.

SrcProfileResult3dimId (in, AIL_ID)

Specifies the identifier of the profile 3D image processing result buffer, previously allocated using M3dimAllocResult with M_PROFILE_RESULT.

DstList3dgraId (out, AIL_ID)

Specifies the identifier of the 3D graphics list in which to draw. You can specify a 3D graphics list that you have 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 profile 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. Label 0 is the 3D graphics list's root node.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Return Value

Type: AIL_INT64

Returns the parent label of all 3D graphics that the function added to the 3D graphics list. If the specified profile 3D image processing result buffer has 0 points, a node 3D graphic is added to the graphics list and the node's label is returned.

Copyright © 2026 Zebra Technologies.