[vtkusers] Clipping with vtkSelectPolyData...

Marcelo amati at cenpra.gov.br
Fri May 9 11:15:00 EDT 2003


	Hi,

	I've used vtkSelectPolyData and vtkClipPolydata class to clip a
specified region 
from a isosurface. When I render it I can't obtain the full volume
without the clipped region. 
A large part isn't displayed: only the part connected to the cutted
region is displayed.  
Should I work with another class? I've sent my code.... 
       
        Thank you!

	Marcelo

--------------------------------------------------------------------------------------------------

    loop = vtkSelectPolyData()                                # The
cutted volume
    loop.SetInput(skinExtractor.GetOutput())
    loop.SetLoop(selectionPoints2)
    loop.GenerateSelectionScalarsOn()
   
    clipper = vtkClipPolyData()
    clipper.SetInput(loop.GetOutput())

    loopMapper = vtkPolyDataMapper()
    loopMapper.SetInput(clipper.GetOutput())

		.
		. 
		.
		.

    loop2 = vtkSelectPolyData()                                 # The
cutted part
    loop2.SetInput(skinExtractor.GetOutput())
    loop2.SetLoop(selectionPoints2)

    loopMapper2 = vtkPolyDataMapper()
    loopMapper2.SetInput(loop2.GetOutput())



More information about the vtkusers mailing list