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 343 of file PathOperator.cpp.
344{
347 const auto& vertices = group->get_all_vertices();
348 if (global_index <
offset + vertices.size()) {
349 size_t local_index = global_index -
offset;
350 return const_cast<LineVertex*
>(&vertices[local_index]);
351 }
352 offset += vertices.size();
353 }
354 return nullptr;
355}
std::vector< std::shared_ptr< GpuSync::PathGeneratorNode > > m_paths
Kakshya::LineVertex LineVertex
References m_paths, and offset.