Class CylinderGeometry#
Defined in File StaticGeometry.h
Inheritance Relationships#
Base Type#
public Karana::Scene::AbstractStaticGeometry(Class AbstractStaticGeometry)
Class Documentation#
-
class CylinderGeometry : public Karana::Scene::AbstractStaticGeometry#
Concrete cylinder geometry class.
See Scene layer for more discussion on the scene layer.
Public Functions
-
CylinderGeometry(float radius, float height)#
Constructor from a radius and height. The constructor is not meant to be called directly. Please use the corresponding create(…) method instead to create an instance.
- Parameters:
radius – radius of the cylinder
height – height of the cylinder
-
CylinderGeometry(const CylinderGeometry&)#
Copy constructor.
-
CylinderGeometry &operator=(const CylinderGeometry&) = delete#
-
CylinderGeometry(CylinderGeometry&&) = delete#
-
CylinderGeometry &operator=(CylinderGeometry&&) = delete#
-
virtual Karana::Core::ks_ptr<StaticMeshGeometry> computeMesh() const override#
Convert to a triangular mesh.
- Returns:
The converted mesh
Public Members
-
const float radius#
radius of the cylinder
-
const float height#
height of the cylinder
Public Static Functions
-
static Karana::Core::ks_ptr<CylinderGeometry> create(float radius, float height)#
Create a new instance of CylinderGeometry from radius and height.
- Parameters:
radius – radius of the capsule
height – height of the capsule’s middle section
- Returns:
A pointer to the newly created instance of BoxGeometry.
-
CylinderGeometry(float radius, float height)#