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

◆ is_concatenable_topology()

bool MayaFlux::Portal::Graphics::is_concatenable_topology ( PrimitiveTopology topology)
nodiscardconstexprnoexcept

Whether two adjacent spans of this topology can be concatenated without altering the primitives they assemble.

List topologies assemble each primitive from its own fixed-size group of consecutive vertices, so appending one span to another adds primitives and leaves existing ones untouched. Strip and fan topologies assemble each primitive from vertices shared with its predecessor, so concatenation fabricates an extra primitive spanning the join.

Definition at line 43 of file GraphicsUtils.hpp.

44{
45 return topology == PrimitiveTopology::POINT_LIST
46 || topology == PrimitiveTopology::LINE_LIST
47 || topology == PrimitiveTopology::TRIANGLE_LIST;
48}

Referenced by MayaFlux::Nodes::Network::AssemblyOperator::topology_runs(), MayaFlux::Nodes::Network::PathOperator::topology_runs(), MayaFlux::Nodes::Network::PhysicsOperator::topology_runs(), and MayaFlux::Nodes::Network::TopologyOperator::topology_runs().

Here is the caller graph for this function: