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

◆ extract_vertex_velocities()

std::vector< glm::vec3 > MayaFlux::Nodes::Network::PhysicsOperator::extract_vertex_velocities ( ) const
nodiscardoverridevirtual

Per-particle PhysicsState::velocity, in the same global vertex-index order get_vertex_data() produces.

Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.

Definition at line 981 of file PhysicsOperator.cpp.

982{
983 std::vector<glm::vec3> velocities;
984 velocities.reserve(get_point_count());
985 for (const auto& group : m_collections) {
986 for (const auto& state : group.physics_state) {
987 velocities.push_back(state.velocity);
988 }
989 }
990 return velocities;
991}
size_t get_point_count() const override
Get source point count (before topology expansion).
std::vector< CollectionGroup > m_collections

References get_point_count(), and m_collections.

Here is the call graph for this function: