[prev in list] [next in list] [prev in thread] [next in thread]
List: vtkusers
Subject: Re: [vtkusers] How to Scale vtkPoints
From: alex Dowson <alexdowson () hotmail ! com>
Date: 2012-03-29 11:44:40
Message-ID: SNT138-ds1502FE5A700725E07D64DAD1480 () phx ! gbl
[Download RAW message or body]
Thanx David.
I will try to do that with vtkTranform and TransformPolyData filter.
Alex
-----Original Message-----
From: David Doria
Sent: Thursday, March 29, 2012 4:57 PM
To: alex Dowson
Cc: VTK Mailing List
Subject: Re: [vtkusers] How to Scale vtkPoints
On Thu, Mar 29, 2012 at 1:08 AM, alex Dowson <alexdowson@hotmail.com> wrote:
>
> Hi
>
> I have vtkPolyData of triangle mesh and I want to rescale vertex (i.e.
> vtkPoints) into range of [-1,1] . How can I do that ?
>
>
> Alex
You can get the bounds of the data with:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataBounds
Then you can do the appropriate shift and scale operation using this
information to rescale the vtkPoints of your vtkPolyData.
David
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic