XformedSurface class

A convenience subclass of Surface for surfaces with a Transform.

Explicitly stores a Transform which positions/orients the surface in the scene.

Base classes

class Surface
This is the abstract superclass for all surfaces.

Derived classes

class SurfaceGroup
A collection of Surfaces grouped together.
class XformedSurfaceWithMaterial
Adds a Material to XformedSurface.

Public functions

auto bounds() const -> Box3f override
The world-space bounds: obtained by simply applying m_xform to the result of local_bounds()
auto local_bounds() const -> Box3f pure virtual
Return the surface's local-space AABB.

Protected variables

Transform m_xform
Local-to-world Transformation.