MayaFlux 0.5.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
overridevirtual

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

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

Definition at line 845 of file PhysicsOperator.cpp.

846{
847 std::vector<glm::vec3> velocities;
848 velocities.reserve(get_point_count());
849 for (const auto& group : m_collections) {
850 for (const auto& state : group.physics_state) {
851 velocities.push_back(state.velocity);
852 }
853 }
854 return velocities;
855}
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: