Class RoundFrustumGeometry#

Inheritance Relationships#

Base Type#

Class Documentation#

class RoundFrustumGeometry : public Karana::Scene::AbstractStaticGeometry#

Concrete round frustum geometry class.

See Scene layer for more discussion on the scene layer.

Public Functions

RoundFrustumGeometry(float bottom_radius, float top_radius, float height)#

Constructor from a radii and hight.

Parameters:
  • bottom_radius – radius of bottom face

  • top_radius – radius of top face

  • height – height of the frustum

RoundFrustumGeometry(const RoundFrustumGeometry&)#

Copy constructor.

RoundFrustumGeometry &operator=(const RoundFrustumGeometry&) = delete#
RoundFrustumGeometry(RoundFrustumGeometry&&) = delete#
RoundFrustumGeometry &operator=(RoundFrustumGeometry&&) = delete#
virtual operator StaticMeshGeometry() 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 bottom_radius#

radius of the bottom face

const float top_radius#

radius of the top face

const float height#

height of the frustum