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

◆ declared_topology()

std::optional< Portal::Graphics::PrimitiveTopology > MayaFlux::Nodes::Network::PhysicsOperator::declared_topology ( ) const
overridevirtual

Forwards to the first collection's own get_primitive_topology().

Returns
nullopt when there is no collection yet; otherwise m_collections[0].collection->get_primitive_topology() (PointCollectionNode's default, POINT_LIST). Same first-element choice get_vertex_layout() already makes for the aggregate.

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

Definition at line 319 of file PhysicsOperator.cpp.

320{
321 if (m_collections.empty()) {
322 return std::nullopt;
323 }
324 return m_collections[0].collection->get_primitive_topology();
325}
std::vector< CollectionGroup > m_collections

References m_collections.