I've encountered a puzzling issue. I have created a THREE.Line object with a material and geometry. The init method adds 2 vertices to the geometry, places the Line in the scene, and the line renders correctly.
However, there's an event listener that should add another vertex every time the canvas is clicked. Unfortunately, when the scene is rendered, only the original 2 vertices are visible. I've checked scene.children
and confirmed that the Line is present, and the geometry has been updated.
The documentation suggests using:
geometry.dynamic = true
geometry.verticesNeedUpdate = true
Unfortunately, these solutions have not resolved the issue.