MayaFlux 1.0.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 136 of file SDFFieldProcessor.cpp.

137{
138 m_pc.bounds_min = bounds_min;
139 const glm::vec3 extent = bounds_max - bounds_min;
140 m_pc.step = {
141 extent.x / static_cast<float>(m_res_x),
142 extent.y / static_cast<float>(m_res_y),
143 extent.z / static_cast<float>(m_res_z),
144 };
145
146 m_field_pc.bounds_min[0] = bounds_min.x;
147 m_field_pc.bounds_min[1] = bounds_min.y;
148 m_field_pc.bounds_min[2] = bounds_min.z;
149 m_field_pc.step[0] = m_pc.step.x;
150 m_field_pc.step[1] = m_pc.step.y;
151 m_field_pc.step[2] = m_pc.step.z;
152}

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

Referenced by SDFFieldProcessor().

+ Here is the caller graph for this function: