Skip to content

ENH: Add vertex label render delegate and model

Adds a visual model that can quickly be added with geometries to show the index of vertices. Useful for debugging. Moves with the geometry. Uses vtkLabeledDataMapper. In the future when we upgrade VTK we should switch to vtkFastLabelMapper as vtkLabelMapper can quickly get slow.

auto visualModel = std::make_shared<VertexLabelVisualModel>();
visualModel->setGeometry(myPointSet);
obj->addVisualModel(visualModel);

image

Resolves: #440 (closed)

Edited by Andrew Wilson

Merge request reports