Class SphereGeometry#
Defined in File StaticGeometry.h
Inheritance Relationships#
Base Type#
public Karana::Scene::AbstractStaticGeometry(Class AbstractStaticGeometry)
Class Documentation#
-
class SphereGeometry : public Karana::Scene::AbstractStaticGeometry#
Concrete sphere geometry class.
See Scene layer for more discussion on the scene layer.
Public Functions
-
SphereGeometry(float radius)#
Constructor from a radius. 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 sphere
-
SphereGeometry(const SphereGeometry&)#
Copy constructor.
-
SphereGeometry &operator=(const SphereGeometry&) = delete#
-
SphereGeometry(SphereGeometry&&) = delete#
-
SphereGeometry &operator=(SphereGeometry&&) = 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 sphere
Public Static Functions
-
static Karana::Core::ks_ptr<SphereGeometry> create(float radius)#
Create a new instance of SphereGeometry from a radius.
- Parameters:
radius – radius of the sphere
- Returns:
A pointer to the newly created instance of SphereGeometry.
-
SphereGeometry(float radius)#