Class AbstractStaticGeometry#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class AbstractStaticGeometry : public Karana::Core::Base#

Interface for static geometry types.

See Scene layer for more discussion on the scene layer.

Subclassed by Karana::Scene::BoxGeometry, Karana::Scene::CapsuleGeometry, Karana::Scene::ConeGeometry, Karana::Scene::CylinderGeometry, Karana::Scene::RoundFrustumGeometry, Karana::Scene::SphereGeometry, Karana::Scene::StaticMeshGeometry

Public Functions

AbstractStaticGeometry(std::string_view name)#

Constructor.

Parameters:

name – the geometry’s name

virtual ~AbstractStaticGeometry()#
virtual operator StaticMeshGeometry() const = 0#

Convert to a triangular mesh.

Returns:

The converted mesh

virtual Karana::Math::AABB aabb() const = 0#

Compute the axis-aligned bounding box (AABB)

Returns:

The AABB