[vtkusers] How to generate 3D polydata from surface (2D) polydata along surface normals?
Jafari, Kourosh
kjafari at rad.hfh.edu
Sat Jun 11 22:02:23 EDT 2011
Thanks Van for your quick response!
I faced two problems with vtkSurfaceReconstructionFilter:
1. There is no vtkPolyData output. The output is vtkImageAlgorithm.
2. I did not find a way to control the number of layers (the number of times the surface points are repeated along the normals)
I think your second suggestion has similar problem. Also, it seems that there are more number of samples near the surface. But I would like to have the same number of vertices at different layers. Is using distance function a statndard way to approach my problem?
Actually I forgot to mention that my surface looks like a semi-cylinder. I have generated the profile of this suface using a 1D spline. So it is not a very general surface. Maybe distance function would be a good choice for a general surface.
I would like to use such generated 3D polydata as an input to a vtkProbeFilter in order to resample a 3D image at the locations of polydata vertices. The output would be another 3D image. That is why I need to have the same number of vertices at different layers.
There is another way to describe what I would like to do: I would like to resample my 3D image by cutting the volume using flat planes that cross the surface vertices and are perpendicular to the surface. The z-component of the normal vector of such flat planes is always zero since my surface looks like a semi-cylinder.
Thanks a lot,
Kourosh
________________________________
From: van.trannam at gmail.com [van.trannam at gmail.com] On Behalf Of Nam-Van TRAN [van.tran at grooviz.com]
Sent: Friday, June 10, 2011 1:42 AM
To: Jafari, Kourosh
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] How to generate 3D polydata from surface (2D) polydata along surface normals?
Hi Kourosh,
Take a look at algo. "Surface reconstruction from unorganized points" in classvtkSurfaceReconstructionFilter
http://www.vtk.org/doc/nightly/html/classvtkSurfaceReconstructionFilter.html
or "Poisson Surface Reconstruction" in
http://www.insight-journal.org/browse/publication/718
Regards,
Van.
2011/6/10 Jafari, Kourosh <kjafari at rad.hfh.edu<mailto:kjafari at rad.hfh.edu>>
Dear vtk users,
I have a curved surface which has been produced by vtkRuledSurfaceFilter. I would like to create a 3D polydata with its vertices created by repeating the surface vertices along the normal of surface at each vertex. How should I do that?
Thanks a lot!
Kourosh
_______________________________________________
Powered by www.kitware.com<http://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
--
Nam-Van TRAN
Résidence MAYA - Bât. A2 Studio 32
1817 Chemin de Saint Claude
06600 Antibes, France
--
Mobile: (+33)7.61.32.38.15
Domicile: (+33).9.51.05.28.02
Email: van.trannam (at) gmail.com<http://gmail.com>
More information about the vtkusers
mailing list