[vtkusers] connecting cells after the use of vtkShrinkFilter
Bryn Lloyd
lloyd at itis.ethz.ch
Wed Nov 9 06:05:58 EST 2011
I think vtkShrinkFilter is the wrong filter for your problem.
Try vtkTransformFilter or vtkTransformPolyDataFilter depending on your
input.
You will need to set up a transform, and set its scale e.g. like this
(python example)
trans = vtk.vtkTransform()
trans.Scale(0.5, 0.5, 0.5)
tf = vtk.vtkTransformFilter()
tf.SetInputConnection(reader.GetOutputPort())
tf.SetTransform(trans)
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of rima4
> Sent: Wednesday, November 09, 2011 10:03 AM
> To: vtkusers at vtk.org
> Subject: [vtkusers] connecting cells after the use of vtkShrinkFilter
>
> Hi all,
> i'm trying to reduce the size of an object without changing his
> forme, i
> used vtkShrinkFilter, the problem that cells are disconnected, someone
> knows
> what should i do to connect them?
> thank you in advance.
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/connecting-cells-after-the-use-of-
> vtkShrinkFilter-tp4977166p4977166.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list