Describe the bug
An array which becomes empty is not handled correctly by PointCloudFromArray and SimpleSpline
How To Reproduce
Run the provided example patch, click and draw the mouse over the canvas to produce a bunch of points which are stored in the CompArray op. Now click the right mouse button. The drawing should be cleared, since the array now has 0 points. The test compares 4 methods for drawing primitives defined from a point array, which can be selected from the SideBar:
Iterating the array with an Array3Iterator and producing circles
Link to simple, reproducible example patch https://cables.gl/edit/QMjqNn
Describe the bug An array which becomes empty is not handled correctly by PointCloudFromArray and SimpleSpline
How To Reproduce Run the provided example patch, click and draw the mouse over the canvas to produce a bunch of points which are stored in the CompArray op. Now click the right mouse button. The drawing should be cleared, since the array now has 0 points. The test compares 4 methods for drawing primitives defined from a point array, which can be selected from the SideBar:
1 and 4 handle this correctly, but 2 and 3 don't.
Platform Google Chrome on a MacBook
Dev Tools Nothing relevant there.