|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
overridevirtual |
Seed physics state from upstream operator's vertex data.
Extracts positions, colors, sizes from upstream and initializes physics state (velocity = 0, mass = 1) for each particle. Supports PointVertex input; other vertex types are ignored with a warning.
| upstream | Upstream operator to seed from |
Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.
Definition at line 96 of file PhysicsOperator.cpp.
References count, MayaFlux::Nodes::Network::NetworkOperator::get_type_name(), get_vertex_count(), MayaFlux::Nodes::Network::GraphicsOperator::get_vertex_data(), initialize(), MF_DEBUG, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.
Here is the call graph for this function: