-
Hi! Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
marcomusy
Nov 6, 2021
Replies: 2 comments 3 replies
-
E.g.: import vedo
import numpy as np
pts = vedo.Points(np.random.randn(1000000,3))
pts.pointdata['Curvature'] = pts.points() # whatever, i'm making this up!
# add an array which corresponds to the z component
pts.pointdata['ZCurvature'] = pts.pointdata['Curvature'][:,2] # numpy array
pts.cmap('jet', "ZCurvature").addScalarBar()
vedo.show(pts, axes=1) |
Beta Was this translation helpful? Give feedback.
1 reply
-
HI, just use your numpy vectors of normals and add them to the point positions, then use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jkissi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI, just use your numpy vectors of normals and add them to the point positions, then use
Lines()
.let me know if you need help,
marco