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

◆ set_resolution()

void MayaFlux::Buffers::ComputeMeshBuffer::set_resolution ( uint32_t  res_x,
uint32_t  res_y,
uint32_t  res_z 
)

Replace the grid resolution.

Resizes the internal grid and counter buffers. Marks dirty.

Definition at line 187 of file ComputeMeshBuffer.cpp.

188{
189 m_res_x = std::max(res_x, 1U);
190 m_res_y = std::max(res_y, 1U);
191 m_res_z = std::max(res_z, 1U);
192 if (m_sdf_processor)
193 m_sdf_processor->set_resolution(m_res_x, m_res_y, m_res_z);
194}
std::shared_ptr< SDFMeshProcessor > m_sdf_processor

References m_res_x, m_res_y, m_res_z, and m_sdf_processor.