Class ConeGeometry#

Inheritance Relationships#

Base Type#

Class Documentation#

class ConeGeometry : public Karana::Scene::AbstractStaticGeometry#

Concrete cone geometry class.

See Scene layer for more discussion on the scene layer.

Public Functions

ConeGeometry(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 cone

  • height – height of the cone

ConeGeometry(const ConeGeometry&)#

Copy constructor.

ConeGeometry &operator=(const ConeGeometry&) = delete#
ConeGeometry(ConeGeometry&&) = delete#
ConeGeometry &operator=(ConeGeometry&&) = delete#
virtual Karana::Core::ks_ptr<StaticMeshGeometry> computeMesh() const override#

Convert to a triangular mesh.

Returns:

The converted mesh

virtual Karana::Math::AABB aabb() const override#

Compute the axis-aligned bounding box (AABB).

Returns:

The AABB

Public Members

const float radius#

radius of the cone

const float height#

height of the cone

Public Static Functions

static Karana::Core::ks_ptr<ConeGeometry> create(float radius, float height)#

Create a new instance of ConeGeometry 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.