Connectables working now. On to more refactoring!

This commit is contained in:
Sebastian
2024-11-13 14:39:46 +01:00
parent 1e0a131169
commit e6f370ba4f
5 changed files with 22 additions and 10 deletions
+5
View File
@@ -56,6 +56,11 @@ namespace VISEQ::GRAPH {
std::ranges::sample(edges, std::back_inserter(o), 1, std::mt19937{std::random_device{}()});
return std::dynamic_pointer_cast<VISEQ::GRAPH::EDGES::Edge>(o.front());
}
void addNode(SPTR_Node node){
nodes.insert(nodes.end(), node);
nodes.back()->init();
}
void copyNodes(VEC_SPTR_Node _nodes, Vec2Df position){
for(auto n: _nodes){