SAFETY_ZONE_SHAPE_CAPSULE

This structure defines a capsule-shaped safety zone, which consists of a cylindrical body capped by hemispherical ends. It is typically used to model elongated or rod-shaped safety regions.

BYTE#

Field Name

Data Type

Value

Remarks

0

_tCenter1

POINT_3D

Center of the first hemispherical end

12

_tCenter2

POINT_3D

Center of the second hemispherical end

24

_fRadius

float

Radius of the capsule’s cylindrical body and hemispherical caps

Total size: 28 bytes

Defined in: DRFS.h

typedef struct _SAFETY_ZONE_SHAPE_CAPSULE
{
    /* center of first hemisphere */
    POINT_3D _tCenter1;
    /* center of second hemisphere */
    POINT_3D _tCenter2;
    /* capsule radius (mm) */
    float _fRadius;
} SAFETY_ZONE_SHAPE_CAPSULE, *LPSAFETY_ZONE_SHAPE_CAPSULE;