Changing to const Mesh*

This commit is contained in:
Patrick Shriwise 2023-01-13 12:24:24 -06:00
parent 9313f809a4
commit beb3085469

View file

@ -108,7 +108,7 @@ public:
//! \return Sampled position
Position sample(uint64_t* seed) const;
const unique_ptr<Mesh>& mesh() const { return model::meshes.at(mesh_idx_); }
const Mesh* mesh() const { return model::meshes.at(mesh_idx_).get(); }
int32_t n_sources() const { return this->mesh()->n_bins(); }