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

◆ get_data_at()

void * MayaFlux::Nodes::Network::TopologyOperator::get_data_at ( size_t  global_index)
overrideprotectedvirtual

Get mutable access to point at global index.

Returns
Pointer to vertex data, or nullptr if index invalid

Subclasses must implement to provide per-point access

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

Definition at line 244 of file TopologyOperator.cpp.

245{
246 size_t offset = 0;
247 for (auto& group : m_topologies) {
248 if (global_index < offset + group->get_point_count()) {
249 size_t local_index = global_index - offset;
250 return &group->get_points()[local_index];
251 }
252 offset += group->get_point_count();
253 }
254 return nullptr;
255}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies
size_t get_point_count() const override
Get source point count (before topology expansion)

References get_point_count(), and m_topologies.

+ Here is the call graph for this function: