[vtkusers] Convert vtkPolyData to vtkPoints

Bayliss, Chris (Chicago) cbayliss at gnresound.com
Thu Feb 9 19:52:05 EST 2012


Hi,

 

Does anyone know how to convert vtkPolyData to vtkPoints?  I am having
trouble figuring out how to deal with converting different data types in
general, is there a good explanation of how to do this somewhere?

 

I am trying to import a list of vtkPolyData points in order to use them
in vtkThinPlateSplineTransform.  The point data file is below.  

 

 

Points data file:

 

# vtk DataFile Version 3.0

vtk output

ASCII

DATASET POLYDATA

POINTS 8 float

4.59051 13.9937 -10.0349 -3.7962 18.3532 -8.86511 1.09064 5.30224
-6.2456 

-9.33379 6.54881 -9.28031 -12.7811 3.69209 -8.08974 -11.3976 6.21781
3.36158 

-1.03919 3.50322 5.165 7.21133 7.95248 2.11749 

VERTICES 8 16

1 0 

1 1 

1 2 

1 3 

1 4 

1 5 

1 6 

1 7 

 

POINT_DATA 8

SCALARS scalars float

LOOKUP_TABLE default

1 1 1 1 1 1 1 1

 

Thanks

 

Chris

 


**** GN GROUP NOTICE - AUTOMATICALLY INSERTED **** 
The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. 
******************** DISCLAIMER END ************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120209/4fadae03/attachment.htm>


More information about the vtkusers mailing list