How to generate mesh from point coordinates or Points #784
-
Hello: We have a set of 3D point coordinates to plot and analyze. We've searched the vedo API and community and found that using Points([X,Y,Z]) can easily convert coordinates to Points object in Vedo. However, there are some useful methods are based on Mesh objects. We expect a method to convert Points to Mesh but see no examples. Can anyone give us a hand? Your advice is deeply appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi Ling |
Beta Was this translation helpful? Give feedback.
-
In principle you can also create a from vedo import *
pts = np.random.randn(100,3)
msh = Mesh(Points(pts), c='black').point_size(10)
show(msh, axes=1) what are the method which you need from the Mesh class? In theory there should be none.. |
Beta Was this translation helpful? Give feedback.
-
First thank you Marcomusy and Ziguo! The mesh method I was intended to use is compute_curvature(). Did I misunderstand the online document? BTW, what does the point_size() mean? It is hard for me to search the online document to find what I am looking for. Are there any offline pdf format document available? Regards! |
Beta Was this translation helpful? Give feedback.
In principle you can also create a
Mesh
object from 3D coordinates with eg:what are the method which you need from the Mesh class? In theory there should be none..
Hope this helps!