[vtkusers] Point Cloud to Mesh
Andras Lasso
lasso at queensu.ca
Wed Dec 14 11:58:55 EST 2016
Why don't you simply use vtkContourFilter to directly generate surface from the input image?
http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Medical/Cxx/Medical1.cxx
Andras
-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Alex Liu via vtkusers
Sent: December 14, 2016 3:57
To: vtkusers at vtk.org
Subject: [vtkusers] Point Cloud to Mesh
Hi all.
I'm trying to construct face from DICOM images. Till now I've successfully extracted Points and normals, you can get the ply file from here FaceReconstruct.ply <https://www.dropbox.com/s/xm6rc66w3e9p0ak/FaceReconstruct.ply?dl=0>
this is the point cloud result
<http://vtk.1045678.n5.nabble.com/file/n5741531/PointCloud.png>
Now I'm trying to convert Points to mesh, for that I'm using
vtkSmartPointer<vtkDelaunay2D> delaunay = vtkSmartPointer<vtkDelaunay2D>::New();
delaunay->SetAlpha(4.0);
delaunay->SetTolerance(0.0001);
delaunay->SetOffset(1.25);
delaunay->BoundingTriangulationOff();
delaunay->SetInputData(polyData);
delaunay->SetSourceData(polyData);
delaunay->Update();
But this function is not able to construct the mesh properly. I tried changing all the parameters for Delaunay2D but, got no success. I also tried using vtkSurfaceReconstruct and I get some strange result.
In meshlab I can construct a smooth surface by using Poisson Surface Reconstruct, and wanted to get the same result using vtk.
Delaunay2D result
<http://vtk.1045678.n5.nabble.com/file/n5741531/Delaunay2D-Result.png>
MeshLab result
<http://vtk.1045678.n5.nabble.com/file/n5741531/MeshLab-Result.png>
Please help me to figure out what's wrong I'm doing and also any solution to construct a smooth surface from this point cloud will be really appreciated.
Thank you.
-----
Alex Liu
+15574855474
--
View this message in context: http://vtk.1045678.n5.nabble.com/Point-Cloud-to-Mesh-tp5741531.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
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list