Struct CylinderPrimitive

Struct Documentation

struct CylinderPrimitive

A primitive representing a cylinder, elliptic cylinder, or truncated cone.

Public Members

std::optional<Pose> pose

Position of the center of the cylinder and orientation of the cylinder. The flat face(s) are perpendicular to the z-axis.

std::optional<Vector3> size

Size of the cylinder’s bounding box.

double bottom_scale = 0

0-1, ratio of the diameter of the cylinder’s bottom face (min z) to the bottom of the bounding box

double top_scale = 0

0-1, ratio of the diameter of the cylinder’s top face (max z) to the top of the bounding box

std::optional<Color> color

Color of the cylinder.