-
Hello Marco!! Are there any examples that do something like this that I could have a look at? If not, if you can think of any suggestions, I would, as always, be very grateful Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi in fact this has been on my my todo list for a while... but I always resisted... :) Maybe thisis something you'd like to play around if it fits your needs: import numpy as np
from vedo import *
from vedo.applications import FreeHandCutPlotter
pts = np.random.randn(10000, 3)
pts = Points(pts).ps(8)
pts.name = "My Gaussian"
cube = Cube().x(2)
plt = FreeHandCutPlotter(pts)
plt.addHoverLegend()
plt.show(pts, Axes(pts), cube) # cube is ignored by the cutter
plt.close() Check out: ..maybe you can customize that one with a box instead of a line. |
Beta Was this translation helpful? Give feedback.
Hi in fact this has been on my my todo list for a while... but I always resisted... :)
It would not be so difficult to implement in vedo as VTK has this functionality already.
Maybe thisis something you'd like to play around if it fits your needs:
(right-click start and stop drawing, the press z or Z to cut)
Check out:
examples/basic/cutFreeHand.py
..maybe you can customize th…