Class RoundFrustumGeometry#
Defined in File StaticGeometry.h
Inheritance Relationships#
Base Type#
public Karana::Scene::AbstractStaticGeometry(Class AbstractStaticGeometry)
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 height. The constructor is not meant to be called directly. Please use the corresponding create(…) method instead to create an instance.
- 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 Karana::Core::ks_ptr<StaticMeshGeometry> computeMesh() const override#
Convert to a triangular mesh.
- Returns:
The converted mesh
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
Public Static Functions
-
static Karana::Core::ks_ptr<RoundFrustumGeometry> create(float bottom_radius, float top_radius, float height)#
Create a new instance of CapsuleGeometry from radii and height.
- Parameters:
bottom_radius – radius of bottom face
top_radius – radius of top face
height – height of the frustum
- Returns:
A pointer to the newly created instance of RoundFrustumGeometry.
-
RoundFrustumGeometry(float bottom_radius, float top_radius, float height)#