[vtk-developers] vtkWeightedTransformFilter added to contrib
David Gobbi
dgobbi at irus.rri.on.ca
Wed Mar 7 13:00:49 EST 2001
Hi Michael,
I've tried out banana.tcl, pretty neat ^-^
For the sake of similarity with othe VTK classes, you might want to
get rid of 'SetNumberOfTransforms()' and instead use
AddTransform()/RemoveTransform(). Take a look at
graphics/vtkAppendFilter.h or imaging/vtkImageMultipleInputFilter.h.
Also, you copied the 'LinearTransformVector' inline functions into
your code. Why? It would have been cleaner if you had just
used transform->TransformPoint() and transform->TransformNormal()
directly for each if the input transforms.
- David
--
David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Wed, 7 Mar 2001, Michael Halle wrote:
>
>
> I just added a new filter called "vtkWeightedTransformFilter" into the
> CVS repository, under contrib.
>
> A weighted transform filter transforms each point in its input using
> several transforms, and computes the final output point by scaling
> these transformed points by a per-point tuple of weights and summing
> the result.
>
> This filter allows cheap deformation of meshes and other structures,
> "skinning" and non-rigid connection of moving objects, and the
> creation of complex shapes using interpolation (wings, potato chips,
> and guitar picks from my one night's experimenting :).
>
> Please try out the "banana.tcl" demo.
>
>
> --Mike
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list