VTK mesh smoothing

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

VTK mesh smoothing

miroseh
Hi,
Could anyone provide some instructions on the usage of VTK mesh smoothing. I tried the functions in vtkMeshSmoothingLaplacian class but it didn't work.
Thank you.

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK mesh smoothing

aichim
Administrator
Hi,

On 5/14/12 10:03 AM, Crissi Hopp wrote:
Hi,
Could anyone provide some instructions on the usage of VTK mesh smoothing. I tried the functions in vtkMeshSmoothingLaplacian class but it didn't work.
What did you try and in what way didn't it work? Please give some more details on this.

Thank you.
Cheers,
Alex


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK mesh smoothing

miroseh
This is the code snippet I tried. I received the error message that there's no polygon mesh to show when I visualized the output mesh.

// Begin Concave Hull Reconstruction
boost::shared_ptr<pcl::PolygonMesh> meshIn = computeConcaveHull(cloud, alpha);

// Begin Laplacian msvtkSmoothing
pcl::PolygonMesh output;
pcl::MeshSmoothingLaplacianmsvtk msvtk;
msvtk.setInputMesh(meshIn);
msvtk.setNumIter(20000);
msvtk.setConvergence(0.0001);
msvtk.setRelaxationFactor(0.0001);
msvtk.setFeatureEdgeSmoothing(true);
msvtk.setFeatureAngle(M_PI/5);
msvtk.setBoundarySmoothing(true);
msvtk.process(output);


From: Alexandru Eugen Ichim <[hidden email]>
To: [hidden email]
Sent: Monday, May 14, 2012 10:05 PM
Subject: Re: [PCL-users] VTK mesh smoothing

What did you try and in what way didn't it work? Please give some more details on this.

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK mesh smoothing

aichim
Administrator
Hi,

Could you please send me the full source code you are using and the input data, so we can debug it?

Thanks!

Cheers,
Alex

On 5/14/12 3:30 PM, Crissi Hopp wrote:
This is the code snippet I tried. I received the error message that there's no polygon mesh to show when I visualized the output mesh.

// Begin Concave Hull Reconstruction
boost::shared_ptr<pcl::PolygonMesh> meshIn = computeConcaveHull(cloud, alpha);

// Begin Laplacian msvtkSmoothing
pcl::PolygonMesh output;
pcl::MeshSmoothingLaplacianmsvtk msvtk;
msvtk.setInputMesh(meshIn);
msvtk.setNumIter(20000);
msvtk.setConvergence(0.0001);
msvtk.setRelaxationFactor(0.0001);
msvtk.setFeatureEdgeSmoothing(true);
msvtk.setFeatureAngle(M_PI/5);
msvtk.setBoundarySmoothing(true);
msvtk.process(output);


From: Alexandru Eugen Ichim [hidden email]
To: [hidden email]
Sent: Monday, May 14, 2012 10:05 PM
Subject: Re: [PCL-users] VTK mesh smoothing

What did you try and in what way didn't it work? Please give some more details on this.


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK mesh smoothing

miroseh
Hi,
I mistook the error message of EarClipping for VTK mesh smoothing. There is no such error messages regarding VTK mesh smoothing, but I'd like to ask about it performance.

I've attached my source code and the input data.

Originally, since my Convex Hull reconstructed mesh appears rough even it has got smoothed with MLS before the reconstruction stage, I come up with a post-processsing that is VTK Laplacian smoothing. Then I see that there's no difference between the reconstructed mesh using Concave Hull and the VTK smoothed mesh. The same situation happens with MeshSmoothingWindowedSincVTK. How can I make the surface smoother?



From: Alexandru Eugen Ichim <[hidden email]>
To: [hidden email]
Sent: Tuesday, May 15, 2012 10:55 PM
Subject: Re: [PCL-users] VTK mesh smoothing

Hi,

  Could you please send me the full source code you are using and the input data, so we can debug it?

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

vtkSmoothing.rar (2M) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK mesh smoothing

ZHOUWEI
This post has NOT been accepted by the mailing list yet.
In reply to this post by miroseh
Hi,

      now I meet the same question with you ,and can you tell me how to solve it?

    thank you !
Loading...