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

◆ get_vertex_layout()

Kakshya::VertexLayout MayaFlux::Nodes::Network::PhysicsOperator::get_vertex_layout ( ) const
overridevirtual

Get vertex layout describing vertex structure.

Implements MayaFlux::Nodes::Network::GraphicsOperator.

Definition at line 305 of file PhysicsOperator.cpp.

306{
307 if (m_collections.empty()) {
308 return {};
309 }
310
311 auto layout_opt = m_collections[0].collection->get_vertex_layout();
312 if (!layout_opt.has_value()) {
313 return {};
314 }
315
316 auto layout = *layout_opt;
317 layout.vertex_count = static_cast<uint32_t>(get_vertex_count());
318 return layout;
319}
size_t get_vertex_count() const override
Get number of vertices (may differ from point count for topology/path)
std::vector< CollectionGroup > m_collections

References get_vertex_count(), m_collections, and MayaFlux::Kakshya::VertexLayout::vertex_count.

+ Here is the call graph for this function: