Class CoalGeometryCache#

Class Documentation#

class CoalGeometryCache#

Helper to cache and reuse native COAL geometries.

Public Functions

CoalGeometryCache() = default#
~CoalGeometryCache() = default#
CoalGeometryCache(const CoalGeometryCache&) = delete#
CoalGeometryCache &operator=(const CoalGeometryCache&) = delete#
CoalGeometryCache(CoalGeometryCache&&) = delete#
CoalGeometryCache &operator=(CoalGeometryCache&&) = delete#
Karana::Core::ks_ptr<coal::CollisionGeometry> get(const VarStaticGeometry &geometry, double scale = 1.0) const#

Get the native COAL geometry for a Scene Geometry.

NaN holes in HeightFieldGeometry are filled with HeightFieldGeometry::fillHoles() before creating the finite native COAL heightfield. The supplied Scene geometry is not modified.

Parameters:
  • geometry – A Scene Geometry.

  • scale – Positive uniform scale baked into the native geometry.

Returns:

A corresponding COAL geometry.