In my BufferGeometry
, I have points arranged in a 1D/2D/3D grid that are dynamically mapped to higher dimensions. The goal is for these vertices to align properly with their neighboring points, as seen in a visualization of a self-organizing map.
I am looking to draw connections between these vertices, similar to the example shown above. While achieving this for 1D is simple with new Line(myBufferGeometry)
, how can this be done efficiently for 2D and 3D grids? Do I need to create and update separate geometries, such as multiple LineSegments
? Is there a more efficient solution or any clever tricks using the index
property?