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

◆ set_path_thickness()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::set_path_thickness ( float  thickness,
bool  force_uniform = true 
)

Set path thickness (applied to all generated vertices)

Parameters
thicknessLine thickness
force_uniformIf true, ignores per-segment thickness and uses this thickness for all vertices

Definition at line 362 of file PathGeneratorNode.cpp.

363{
364 m_current_thickness = thickness;
365 m_force_uniform_thickness = force_uniform;
366 m_attributes_dirty = true;
367 m_vertex_data_dirty = true;
368
370 for (auto& v : m_completed_draws)
371 v.thickness = thickness;
372
373 for (auto& v : m_draw_vertices)
374 v.thickness = thickness;
375 }
376}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.

References m_attributes_dirty, m_completed_draws, m_current_thickness, m_draw_vertices, m_force_uniform_thickness, and MayaFlux::Nodes::GpuSync::GeometryWriterNode::m_vertex_data_dirty.

Referenced by force_uniform_thickness().

+ Here is the caller graph for this function: