MayaFlux 0.4.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 302 of file PhysicsOperator.cpp.

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