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

◆ rebuild()

void MayaFlux::Nodes::GpuSync::SDFNode::rebuild ( )
private

Definition at line 63 of file SDFNode.cpp.

64{
68
69 if (!data.is_valid()) {
71 "SDFNode: no isosurface crossings at iso_level={}", m_iso_level);
72 clear_mesh();
73 m_dirty = false;
74 return;
75 }
76
77 set_mesh(data);
79 m_dirty = false;
80}
#define MF_WARN(comp, ctx,...)
void set_mesh(const Kakshya::MeshData &data)
Replace all vertex and index data from a MeshData owner.
void compute_frame() override
Compute GPU data for this frame.
Kinesis::SpatialField m_field
Definition SDFNode.hpp:103
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.
MAYAFLUX_API Kakshya::MeshData generate_sdf_mesh(const 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)
Extract an isosurface from a scalar field using marching cubes.

References MayaFlux::Nodes::GpuSync::MeshWriterNode::clear_mesh(), MayaFlux::Nodes::GpuSync::MeshWriterNode::compute_frame(), MayaFlux::Kinesis::generate_sdf_mesh(), m_bounds_max, m_bounds_min, m_dirty, m_field, m_iso_level, m_res_x, m_res_y, m_res_z, MF_WARN, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, and MayaFlux::Nodes::GpuSync::MeshWriterNode::set_mesh().

Referenced by compute_frame(), and SDFNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: