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

◆ refresh_positions()

void MayaFlux::Nodes::GpuSync::TopologyGeneratorNode::refresh_positions ( )
private

Refill m_positions from m_points, in place.

Definition at line 82 of file TopologyGeneratorNode.cpp.

83{
84 m_positions.resize(3, static_cast<Eigen::Index>(m_points.size()));
85
86 Eigen::Index idx = 0;
87 for (const auto& point : m_points) {
88 m_positions(0, idx) = point.position.x;
89 m_positions(1, idx) = point.position.y;
90 m_positions(2, idx) = point.position.z;
91 ++idx;
92 }
93}
std::vector< LineVertex > m_points
Points, newest first: index 0 is the most recently added.
Form< glm::vec2 > point(glm::vec3 color, float size, float hit_radius)
Geometry function for a positioned point in NDC space.

References m_points, and m_positions.

Referenced by regenerate_topology().

+ Here is the caller graph for this function: