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

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Thu Apr 12 16:56:56 EDT 2001


Thanks David,

>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]

I like this one, but it'd mean storing an extra
float stuff[24]
in each instance of vtkCamera because its not stored usually (computed on 
the fly from transformation matrix).

>There is the option of not implementing the
>    SetClippingPlanes(vtkPlanes)
>method in vtkAbstractMapper at all.

Yes, but one script uses it, so someone must have wanted it once. (or maybe 
you mean, just leave this one function in AbstractMapper3D)

Alternatively...adopt
b) break tcl code by implementing it and remove offending script, replacing 
it with a cxx version

If a change is for a good cause, but breaks some old code, how does one 
decide if it should be permitted. (cf thread about discussion and laissez 
faire attitude to changes).

How about this strategy.
I'm going to change the code as mentioned previously (b), and some stuff 
will break, Almost nobody will ever notice, but please say so now if it 
matters. I'll post a similar message to the user list and make sure people 
are notified.

Can someone please remind me of the change log FAQ thingy that needs 
entries when stuff changes.

Thanks

JB






More information about the vtk-developers mailing list