This is the surface generated by plot’s Surface feature.
Click here.
I want to know how can three.js achieve the same effect ?
This is the surface generated by plot’s Surface feature.
Which one? Deformed sphere (or what surface is it)? Colors on the object? The grid on background?
Same shape and colors. I’ve tried a lot of things, but nothing works
There appears to be equal number of points on each layer… This is quite strong alleviation.
TKS, I’ll try it.
Would be cool to see the code of your implementation
Because your geometry needs .index
, that forms faces by indices of vertices. PlaneGeometry
has index
of the desired structure.
Is there any example help to learn this?
Source code of PlaneGeometry
: three.js/PlaneGeometry.js at 560c5fcba722d9b37884a6925895d64195cd675e · mrdoob/three.js · GitHub
You can create an instance of PlaneGeometry of a certain segmentation and then substitute its points with points, that you obtained from the plot. Don’t forget to re-compute vertex normals afterwards.
Can you show how you updated the vertices? I’m trying the same but I’m stuck.
Thanks
May I ask how it was implemented