MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ worst_case_vertices()

uint32_t MayaFlux::Buffers::VolumeSurfaceProcessor::worst_case_vertices ( ) const
inlinenoexcept

Upper bound on vertices mc_emit can produce at this resolution.

Fifteen per voxel, the maximum five triangles the triangle table encodes. Size the vertex buffer to at least this many vertices: mc_emit allocates slots via atomicAdd without a capacity check.

Definition at line 128 of file VolumeSurfaceProcessor.hpp.

129 {
130 return static_cast<uint32_t>(m_lattice.cell_count()) * 15U;
131 }
size_t cell_count() const noexcept
Total cell count.
Definition Lattice.hpp:36