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

◆ get_node_output()

std::optional< double > MayaFlux::Nodes::Network::ParticleNetwork::get_node_output ( size_t  index) const
overridevirtual

Get output value for specific particle.

Parameters
indexParticle index (0 to get_node_count()-1)

Returns per-particle output (e.g., velocity magnitude). Used for ONE_TO_ONE parameter mapping from this network to other networks.

Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 133 of file ParticleNetwork.cpp.

134{
135 if (!m_operator) {
136 return std::nullopt;
137 }
138
139 if (auto* physics = dynamic_cast<const PhysicsOperator*>(m_operator.get())) {
140 return physics->get_particle_velocity(index);
141 }
142
143 return std::nullopt;
144}
std::unique_ptr< NetworkOperator > m_operator

References m_operator.