Skip to content

Cylinder

A solid cylinder.

Defined by a center point, an axis vector, a radius, and a length.

type#

type: Literal['cylinder'] = 'cylinder'

center#

center: list[float]

The center point of the cylinder.

radius#

radius: float

The radius of the cylinder.

axis#

axis: list[float]

The axis along which the cylinder extends.

length#

length: float

The length of the cylinder along the given axis.