Skip to content

Rectangular selection functionality #616

Answered by marcomusy
jkissi asked this question in Q&A
Discussion options

You must be logged in to vote

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)

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:
examples/basic/cutFreeHand.py

..maybe you can customize th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jkissi
Comment options

Answer selected by jkissi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants