6 #include "../core/transformer.h" 7 #include "../core/workspace.h" 12 if (_watcher.changed(length(), radius())) {
14 std::make_shared<Mesh>(makeAxes(length(), radius(), 24)), material());
16 auto &transformer =
LockScope()->document()->display()->transformer;
17 _mesh_renderer->clearInstances();
18 auto frames = transformer->list();
19 _frames.resize(frames.size());
20 for (
size_t i = 0; i < frames.size(); i++) {
21 _frames[i].name(frames[i]);
22 if (
auto frame = _frames[i].pose(transformer)) {
23 _mesh_renderer->addInstance(*frame);
26 MeshDisplayBase::renderSync(context);