Hi again,
I am struggling with a strange behaviour when trying to draw curves.
Here is the simple demo app that show this issue:
handling curves
When the app loads, a curve is traced (CatmulRomCurve3) using the positions of the four visible spheres, a geometry is created and its positions are taken from this curve. And a new Line object is created using this geometry, added to the scene but not shown (object.visible = false).
Then the behaviour is OK: when the user hover one of the spheres, it highlights, and when he clicks the gizmo is attached to it and allows to move the sphere.
BUT, when I show the line (press G on the keyboard), the selection gets unpredictible and messy… until the curve is hidden again (H key).
Another functionality of the app is to update the curve upon the movement of one of its definition points, which works fine as far as I can see.
Anyone has a clue of what’s going on when the line is displayed??
Thanks!
David