Class ConeGeometry#
Defined in File StaticGeometry.h
Inheritance Relationships#
Base Type#
public Karana::Scene::AbstractStaticGeometry(Class AbstractStaticGeometry)
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
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.
-
ConeGeometry(float radius, float height)#