MayaFlux 0.5.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 303 of file PhysicsOperator.cpp.

304{
305 if (m_collections.empty()) {
306 return {};
307 }
308
309 auto layout_opt = m_collections[0].collection->get_vertex_layout();
310 if (!layout_opt.has_value()) {
311 return {};
312 }
313
314 auto layout = *layout_opt;
315 layout.vertex_count = static_cast<uint32_t>(get_vertex_count());
316 return layout;
317}
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: