How to draw a surface from xyz coordinates

Hi guys,

I’m trying to understand if it’s possible to draw a surface starting from xyz coordinates of its vertex.

The result I’d like to achieve is something like this.

Can you please give me some hints?


It’s possible with three.js.
Read the document and learn. When you encounter problems come to ask again, with your code.

I notice your example is made with plotly.js. maybe it’s a better library for your purpose.

1 Like

Take a look at this SO answer:

I’m looking at this thread, do you think it’s still up to date?

I’m trying to understand the code, starting from thwt faceIndices are in a BufferGeometry…

I guess so, yeah. Just replace the three.js version.
If something doesn’t work, I have to look.:slightly_smiling_face:

1 Like

Yeah the code works, I’m trying to understand its logic, and the official documentation of three.js doesn’t help me so much

If there’s a passage not clear in my code, ask.

I have not always made enough comments. :confused: