LiteFX::Rendering::IBottomLevelAccelerationStructure::withTriangleMesh¶
Adds a triangle mesh to the BLAS.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
template<typename TSelf>
TSelf&& withTriangleMesh(this
TSelf&& self,
TriangleMesh const& mesh);
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the acceleration structure already contains bounding boxes. |
Return Value¶
A reference to the current BLAS.
Parameters¶
| Name | Description |
|---|---|
| mesh | The triangle mesh to add to the BLAS. |