[vtkusers] Cut volume with freehand curve

Justin Weber onlyjus at gmail.com
Wed Mar 28 21:58:09 EDT 2012


Here is how I do something similar with vtk in python. I have a
vtkUnstructuredGrid=uGrid

        box=vtk.vtkBox()
        box.SetBounds((X1,X2,Y1,Y2,Z1,Z2)

        clipper=vtk.vtkClipDataSet()
        clipper.SetInsideOut(0) #where 0 gives all the cells outside of the
box, and 1 gives all the cells inside the box.
        clipper.SetClipFunction(box)
        clipper.SetInput( uGrid )

        clipper.Update()

        clippedUGrid=clipper.GetOutput()

So the problem becomes, can we get the shape you want into an implicit
function?

On Wed, Mar 28, 2012 at 9:27 PM, qwcbeyond <340181048 at qq.com> wrote:

> No. I only want a volume with a hole cut through it and have the same
> resolution  with the input volume.
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Cut-volume-with-freehand-curve-tp5600009p5602337.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120328/43276979/attachment.htm>


More information about the vtkusers mailing list