-
Hi! I have a point cloud and I am trying to place bounding boxes around certain areas of the cloud, something like this: Fairly simple I think but I'm not sure whats best to use. I think what I want is Unstructured Grid? Maybe something like the following:
I'm not sure how to call UGrid though. Can I use numpy arrays or dataframes to do it? And what are the arguments that it needs? I had a loo0k at the source but I wasn't quite clear what it was asking for. I like UGrid because I want transparency but to control the line thickness and colour. Any help would be very much appreciated!! Thanks in advance J |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, the UGrid is not what you need here.. you may play around with this: import vedo
import numpy as np
vedo.settings.useDepthPeeling = True # may improve rendering
points= np.array([[1, 0, 0],
[0, 0, 0],
[0, 1, 0],
[1, 1, 0],
])
line = vedo.Line(points, closed=True).lineWidth(5).c('red4')
wall = line.extrude(0.2)
#wall = line.sweep([0,0,0.2]) # also possbile
wall.c('blue4').alpha(0.5).lineWidth(0) # control apperance
labs = vedo.Points(points).labels('id')
#tube = vedo.Tube(points, r=.1)
vedo.show(line, wall, labs, axes=1) |
Beta Was this translation helpful? Give feedback.
Hi, the UGrid is not what you need here.. you may play around with this: