Skip to main content

ShapeCylinder

The ShapeCylinder class represents a cylinder-shaped geometry in the Scene. It extends the Shape class by adding properties to define the cylinder dimensions. The cylinder axis is aligned with the Z axis.

#include <scene/TellusimShapeCylinder.h>

Inheritance

Constructors

explicit ShapeCylinder(const char *name = nullptr)
explicit ShapeCylinder(Body &body, const char *name = nullptr)
explicit ShapeCylinder(Object &object, const char *name = nullptr)

Methods

Shape radius.

void setRadius(float32_t radius)
float32_t getRadius() const

Shape height.

void setHeight(float32_t height)
float32_t getHeight() const