Skip to main content

M3dgraArc

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

Add a circular arc graphic to a 3D graphics list.

Syntax

AIL_INT64 M3dgraArc(
AIL_ID List3dgraId, //out
AIL_INT64 ParentLabel, //in
AIL_INT64 CreationMode, //in
AIL_INT64 Symbol, //in
AIL_DOUBLE X1, //in
AIL_DOUBLE Y1, //in
AIL_DOUBLE Z1, //in
AIL_DOUBLE X2, //in
AIL_DOUBLE Y2, //in
AIL_DOUBLE Z2, //in
AIL_DOUBLE X3, //in
AIL_DOUBLE Y3, //in
AIL_DOUBLE Z3, //in
AIL_DOUBLE Angle, //in
AIL_INT64 ControlFlag //in
)

Description

This function adds a circular arc graphic or, with an angle of 360 degrees, a circle graphic to the specified 3D graphics list, allowing you to, for example, view the circular arc graphic on a 3D display.

You must specify the label of the 3D graphic, in the 3D graphics list, to use as the parent of the arc graphic. When the arc graphic is added to the 3D graphics list's tree structure, it is added as a child under the specified parent. If the 3D graphics list is empty, the arc graphic's parent must be the root node. The coordinates of the arc's vertices are expressed in the coordinate system of the arc graphic's parent.

The arc graphic has its own coordinate system that represents the arc's position and orientation with respect to its parent's coordinate system. The arc's coordinate system's origin is the arc's center, its X-axis is the vector directed from the arc's center to the arc's start point, and its Z-axis is the arc's normal vector. You can inquire the arc's start point and normal vector using M3dgraInquire with M_START_POINT_... and M_NORMAL..., respectively. You can change the position and orientation of the arc graphic using M3dgraCopy with M_TRANSFORMATION_MATRIX.

To modify or inquire 3D graphics list settings, use M3dgraControl or M3dgraInquire, respectively.

Note: Unlike most other functions that modify an Aurora Imaging Library object, you can call this function concurrently from multiple threads on the same Aurora Imaging Library 3D graphics list (List3dgraId) without using an M_MUTEX object, as long as all the other parameters of the concurrent calls do not also share data.

Parameters

List3dgraId (out, AIL_ID)

Specifies the identifier of the 3D graphics list in which to add the arc graphic. The 3D graphics list must have been previously allocated on the required system 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).

ParentLabel (in, AIL_INT64)

Specifies the label of the parent of the arc graphic in the 3D graphics list.

For specifying the parent label

ValueDescription
M_DEFAULTSame as M_ROOT_NODE.
M_ROOT_NODESpecifies the top-most node of the 3D graphics list.
Value >= 0Specifies the label of the parent of the arc graphic in the 3D graphics list. Label 0 is the 3D graphics list's root node.

CreationMode (in, AIL_INT64)

Specifies how the arc graphic is defined.

Symbol (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

X1 (in, AIL_DOUBLE)

Specifies the X-coordinate of the first point used to define the arc.

Y1 (in, AIL_DOUBLE)

Specifies the Y-coordinate of the first point used to define the arc.

Z1 (in, AIL_DOUBLE)

Specifies the Z-coordinate of the first point used to define the arc.

X2 (in, AIL_DOUBLE)

Specifies the X-coordinate of the second point used to define the arc.

Y2 (in, AIL_DOUBLE)

Specifies the Y-coordinate of the second point used to define the arc.

Z2 (in, AIL_DOUBLE)

Specifies the Z-coordinate of the second point used to define the arc.

X3 (in, AIL_DOUBLE)

Specifies the X-coordinate of the third point used to define the arc.

Y3 (in, AIL_DOUBLE)

Specifies the Y-coordinate of the third point used to define the arc.

Z3 (in, AIL_DOUBLE)

Specifies the Z-coordinate of the third point used to define the arc.

Angle (in, AIL_DOUBLE)

Specifies the angle used to define the arc.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Parameter Associations

For specifying the arc graphic

Set unused parameters to M_DEFAULT.


M_CENTER_AND_TWO_POINTS

Defines a circular arc graphic using a center and two end points. The result will be a circular arc, with a radius defined by the center and the first end point. The arc extends from the first end point to the point on the line that passes through the center and the second end point. Therefore, the second end point does not have to be a point on the arc.[Image: 3dgra_arc_center_and_two_points.png]

ValueDescription
M_DEFAULT
M_BIGGEST_ANGLESpecifies to use the biggest angle formed by the specified center and end points.
M_SMALLEST_ANGLE (default)Specifies to use the smallest angle formed by the specified center and end points.

M_CENTER_AND_TWO_VECTORS

Defines a circular arc graphic using a center and two vectors. The first vector defines the distance between the center and the first end point, and its magnitude determines the arc radius. The second vector defines the distance between the center and the second end point. The result will be a circular arc that extends from the first end point, to the point on the line that passes through the center and the second end point. Therefore, the second end point does not have to be a point on the arc.[Image: 3dgra_arc_center_and_two_vectors.png]

ValueDescription
M_DEFAULT
M_BIGGEST_ANGLESpecifies to use the biggest angle formed by the specified center and end points.
M_SMALLEST_ANGLE (default)Specifies to use the smallest angle formed by the specified center and end points.

M_NORMAL_AND_ANGLE

Defines a circular arc graphic using a center, a starting vector, a normal vector, and an arc angle. The starting vector defines the direction between the center and the start point, as well as the arc radius. The direction in which the arc extends follows the right-hand rule. If the starting direction vector and the normal vector are not perpendicular, the normal vector is orthogonalized.[Image: 3dgra_arc_normal_and_angle.png]


M_THREE_POINTS

Defines a circular arc graphic using three points on the arc. The arc starts at the first point, passes through the second point, and ends at the third point.[Image: 3dgra_arc_three_points.png]

Return Value

Type: AIL_INT64

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

Copyright © 2026 Zebra Technologies.