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

◆ declared_topology()

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

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 450 of file PhysicsOperator.cpp.

451{
452 if (m_collections.empty()) {
453 return std::nullopt;
454 }
455 return m_collections[0].collection->get_primitive_topology();
456}
std::vector< CollectionGroup > m_collections

References m_collections.