Currently, the PlaneGeometry offers the option to adjust segment width and height, but this does not affect the edges. Each segment is currently mapped with indexed positions that create an 'N' shape when viewed in wireframe mode:
The current indexes are as follows:
- 0 = South West
- 1 = North West
- 2 = South East
- 3 = North East
While this setup provides an 'N' shape for each segment with wireframes, I am interested in creating an 'X' shape with edges for every segment. Currently, I am using planes to achieve varying heights, and having an 'X' shape would result in a less angular appearance (see screenshots below).
I believe all necessary vertices already exist, but how can I add an extra edge between points 0 and 3 for each segment?
I have searched online for answers, but most articles predate version R125, which introduced significant changes to Geometries. I am currently working with version R135.
I assume that creating a custom Buffer Geometry is the solution, but I am unsure of the best way to implement this without sacrificing performance.
https://i.sstatic.net/dgAXf.jpg
https://i.sstatic.net/E2Gpl.jpg
- All red and blue lines represent existing edges in wireframe mode.
- All green lines indicate desired edges that do not currently exist. What would be the most efficient method to achieve this without compromising performance?
Thank you in advance!