sofa
sofa copied to clipboard
[Topology] Dynamically add and remove element exceptions from empty mesh
Discussed in https://github.com/sofa-framework/sofa/discussions/3092
Originally posted by monkeygame July 1, 2022 Hello everyone! I'm learning about dynamically removing and adding tetrahedral elements examples\Components\topology\TopologicalModifiers I think I added four tetrahedrons, and then I deleted the first tetrahedron in the next step. An error occurs when I try to delete a group of tetrahedrons after adding a group of tetrahedrons. input:
T= 0.2
ADD= Tetrahedra 4
0 1 9 3 1 10 9 13 13 1 10 11 1 2 11 5
T= 0.4
REMOVE= 1
0
error info:
in vector<class sofa::type::Vec<3,double>> 25b825b0 size 25 : invalid index 25
Does anyone know why?