MayaFlux 0.2.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 289 of file PathGeneratorNode.cpp.

290{
291 m_current_thickness = thickness;
292 m_force_uniform_thickness = force_uniform;
293 m_vertex_data_dirty = true;
294 m_geometry_dirty = true;
295
297 for (auto& v : m_completed_draws)
298 v.thickness = thickness;
299
300 for (auto& v : m_draw_vertices)
301 v.thickness = thickness;
302 }
303}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.

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

Referenced by force_uniform_thickness().

+ Here is the caller graph for this function: