Skip to content

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

NameThrown on
RuntimeExceptionThrown, if the acceleration structure already contains bounding boxes.

Return Value

A reference to the current BLAS.

Parameters

NameDescription
meshThe triangle mesh to add to the BLAS.