Closed tinevez closed 1 year ago
thank you @ctrueden ! I implemented most of your suggestions.
I could not find a good way to change the design as you suggested, that is: have method that produce a new mesh accepts a pre-allocated Mesh object that they mutate. The main mesh implementation we use is the BufferMesh (e.g. in the BVV), which requires the number of vertices and triangles to be stored to be known in advance.
Also: careful I git-push-forced.
This break the separation between the data structure and the algorithms. But there are reasons why we want to do this: