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

◆ get_accreted_mass_span()

std::span< const float > MayaFlux::Nodes::Network::PhysicsOperator::get_accreted_mass_span ( )

Every particle's currently accreted mass, in global index order.

Returns
Empty if there are no particles yet; otherwise always get_point_count() elements, lazily seeded to 1.0 each on the first call, the same seeding sync_bonds_from_claims does, so a caller can upload this from cycle one without waiting for the first claim event to size it.

Not const: may lazily initialise m_accreted_mass on first call.

Definition at line 621 of file PhysicsOperator.cpp.

622{
623 const size_t count = get_point_count();
624 if (count > 0 && m_accreted_mass.size() != count) {
625 m_accreted_mass.assign(count, 1.0F);
626 }
627 return m_accreted_mass;
628}
size_t count
size_t get_point_count() const override
Get source point count (before topology expansion)
std::vector< float > m_accreted_mass
Lazily seeded to 1.0 per particle; see sync_bonds_from_claims.

References count, get_point_count(), and m_accreted_mass.

Referenced by MayaFlux::Buffers::ClaimAccumulateProcessor::processing_function().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: