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

◆ set_resolution()

void MayaFlux::Nodes::GpuSync::SDFNode::set_resolution ( uint32_t  res_x,
uint32_t  res_y,
uint32_t  res_z 
)

Replace the grid resolution and mark dirty.

Parameters
res_xCell count along X. Clamped to minimum 1.
res_yCell count along Y. Clamped to minimum 1.
res_zCell count along Z. Clamped to minimum 1.

Definition at line 42 of file SDFNode.cpp.

43{
44 m_res_x = std::max(res_x, 1U);
45 m_res_y = std::max(res_y, 1U);
46 m_res_z = std::max(res_z, 1U);
47 m_dirty = true;
48}

References m_dirty, m_res_x, m_res_y, and m_res_z.