[vtk-developers] 2D Clipping planes again (problem)

David Gobbi dgobbi at irus.rri.on.ca
Thu Apr 12 12:03:22 EDT 2001


On Thu, 12 Apr 2001, John Biddiscombe wrote:

> vtkPlanes-> void SetFrustumPlanes(float aspect, float planes[24]);

change to 'const float planes[24]' so that this method can be wrapped.

> vtkCamera->  void GetFrustumPlanes(float aspect, float planes[24]);

add another method as well,

float *vtkCamera->GetFrustrumPlanes(float aspec)

and at a hint to the hints file, then in tcl people should be able to do

vtkPlanes SetFrustumPlanes aspect [vtkCamera GetFrustumPlanes aspect]

> Another Question : Is there a way of transferring vtkPlanes from graphics
> to common without losing all cvs info?

There is the option of not implementing the
   SetClippingPlanes(vtkPlanes)
method in vtkAbstractMapper at all. AFAIK, the preferred for setting
clipping planes is
   vtkSetObjectMacro(ClippingPlanes,vtkPlaneCollection);
At least this would allow you to commit your changes.



More information about the vtk-developers mailing list