MayaFlux 0.5.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 57 of file TopologyGeneratorNode.cpp.

58{
59 m_positions.resize(3, static_cast<Eigen::Index>(m_points.size()));
60
61 Eigen::Index idx = 0;
62 for (const auto& point : m_points) {
63 m_positions(0, idx) = point.position.x;
64 m_positions(1, idx) = point.position.y;
65 m_positions(2, idx) = point.position.z;
66 ++idx;
67 }
68}
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: