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

◆ set_bounds()

void MayaFlux::Buffers::SDFFieldProcessor::set_bounds ( const glm::vec3 &  bounds_min,
const glm::vec3 &  bounds_max 
)

Replace the evaluation volume.

Definition at line 41 of file SDFFieldProcessor.cpp.

42{
43 m_pc.bounds_min = bounds_min;
44 const glm::vec3 extent = bounds_max - bounds_min;
45 m_pc.step = {
46 extent.x / static_cast<float>(m_res_x),
47 extent.y / static_cast<float>(m_res_y),
48 extent.z / static_cast<float>(m_res_z),
49 };
50}

References MayaFlux::Buffers::SDFFieldProcessor::PC::bounds_min, m_pc, m_res_x, m_res_y, m_res_z, and MayaFlux::Buffers::SDFFieldProcessor::PC::step.