[vtkusers] RemoveAllClippingPlanes gone?

David Gobbi dgobbi at irus.rri.on.ca
Sun Mar 11 20:06:53 EST 2001


On Sun, 11 Mar 2001, Julian Humphries wrote:

> I am trying to figure out how to remove a (one or more) clipping
> plane(s) from a PolyDataMapper.   I added the plane with
> 
> self.mymapper.AddClippingPlane(plane)
> 
> just fine.  The interface allows multiple calls so I need a way to remove
> all added clipping planes.  It looks like RemoveAllClippingPlanes() would
> do the job, but the version of vtk I am using (PC binaries, released
> version 3.1) with Python bindings doesn't have this method (apparently).
> A call to:
> 
> self.mymapper.RemoveAllClippingPlanes() returns an attribute error.

This method is certainly wrapped in the current VTK, I'm not sure why
it would be missing in 3.1.  You could try using
  mapper.SetClippingPlanes(None)
or
  mapper.GetClippingPlanes().RemoveAllItems()

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario





More information about the vtkusers mailing list