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

◆ SDFNode()

MayaFlux::Nodes::GpuSync::SDFNode::SDFNode ( Kinesis::SpatialField  field,
const glm::vec3 &  bounds_min,
const glm::vec3 &  bounds_max,
uint32_t  res_x,
uint32_t  res_y,
uint32_t  res_z,
float  iso_level = 0.0F 
)

Construct and evaluate the initial isosurface.

Parameters
fieldSpatialField: glm::vec3 -> float.
bounds_minWorld-space minimum corner of the evaluation volume.
bounds_maxWorld-space maximum corner of the evaluation volume.
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.
iso_levelIsosurface threshold. Default 0.0.

Definition at line 9 of file SDFNode.cpp.

17 : MeshWriterNode(static_cast<size_t>(res_x * res_y * res_z) * 3)
18 , m_field(std::move(field))
19 , m_bounds_min(bounds_min)
20 , m_bounds_max(bounds_max)
21 , m_res_x(std::max(res_x, 1U))
22 , m_res_y(std::max(res_y, 1U))
23 , m_res_z(std::max(res_z, 1U))
24 , m_iso_level(iso_level)
25{
26 rebuild();
27}
MeshWriterNode(size_t initial_vertex_capacity=1024)
Kinesis::SpatialField m_field
Definition SDFNode.hpp:103

References rebuild().

+ Here is the call graph for this function: