[Paraview] extracting surfaces

Olivier Ricou olivier at ricou.eu.org
Wed May 23 09:40:34 EDT 2007


die 23/05/07, ad 10h58, Stephen Wornom <Stephen.Wornom at sophia.inria.fr> dixit :
> After I extract a surface from an unstructured 3D mesh, how do I save 
> the extracted coordinates?

run a python script on the extracted surface. Something like

pdi = self.GetInput()
nbp = pdi.GetNumberOfPoints()
pts = pdi.GetPoints().GetData()
for i in range(0,nbp):
  print "%5f %5f %5f" % (pts.GetTuple3(i)[0],pts.GetTuple3(i)[1],pts.GetTuple1(i)[2])

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://public.kitware.com/pipermail/paraview/attachments/20070523/a8f4dbf9/attachment.pgp


More information about the ParaView mailing list