[vtkusers] Smoothing Surface

Andras Lasso lasso at queensu.ca
Sat Dec 16 01:20:29 EST 2017


You can use the joint smoothing method implemented in 3D Slicer to make independent meshes smoother while keeping their interface airtight. The key idea is to create a merged polydata, smooth it, and split it.

Sample images:

  *   Before: https://www.dropbox.com/s/819nenm7kpb09tz/1-before-joint-smoothing.png?dl=0
  *   After: https://www.dropbox.com/s/7o0ijjk1kfz7ha2/2-after-joint-smoothing.png?dl=0

You can try it by downloading&installing 3D Slicer and following these steps:

  *   go to Segment Editor module
  *   draw a few segments
  *   click Show 3D to see segments as surface meshes in 3D
  *   select Smoothing effect, Joint smoothing method, and click Apply

Source code:
https://github.com/Slicer/Slicer/blob/1b713d1701dea926134ec6366134fa3e08caf21e/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorSmoothingEffect.py#L262-L351

Andras

From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Henan Zhao
Sent: Friday, December 15, 2017 10:57 PM
To: Bill Lorensen <bill.lorensen at gmail.com>
Cc: VTK Users <vtkusers at vtk.org>
Subject: Re: [vtkusers] Smoothing Surface

Thanks!
I have one more question about smoothing a surface.

If a surface is made up by two shapes, like a semi-sphere and a plane.
Is there a good way to smooth the original connectivity between the two shapes in VTK?
For example, assuming that I locate a semi-sphere on the top of a plane, I expect that the angle on the connectivity part is 90 degree.
However, the connectivity part is also smoothed and the angle is larger than 90 degree after I use the smoothing algorithm.



On Fri, Dec 15, 2017 at 5:57 PM, Bill Lorensen <bill.lorensen at gmail.com<mailto:bill.lorensen at gmail.com>> wrote:
Try this:
https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/WindowedSincPolyDataFilter/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Florensen.github.io%2FVTKExamples%2Fsite%2FCxx%2FMeshes%2FWindowedSincPolyDataFilter%2F&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=6T8MC0OcDmSQYSSdvLiLdOJoRK1P7O6fRkb0vcp8qP0%3D&reserved=0>



On Fri, Dec 15, 2017 at 4:40 PM, Henan Zhao <henan1 at umbc.edu<mailto:henan1 at umbc.edu>> wrote:

Hi,

I met a problem when using vtkSmoothPolyDataFilter.
I want to use this filter to smooth a mesh, and I want to have a new mesh which is outside the original one.

However, the new mesh I got is inside the original one.
Here is a figure: the white wireframe is my original mesh, and the white solid surface is the new one using vtkSmoothPolyDataFilter.

[Inline image 1]



I am wondering if there is a parameter I should set or any other filters I should use.

Thank you in advance.

_______________________________________________
Powered by www.kitware.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=rmDOp1lFMKtXsfgvFcfNUBztt8AZjXQeKIrGDrghvQk%3D&reserved=0>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=EUQ1Gq13h4sSZS9FWcBw45yeW%2FrpqaGH0CEEEuT%2F69Q%3D&reserved=0>

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=yN9OpCWGW5xoRh6X4xpsgdWcslNCRX7B1UYJzKroif4%3D&reserved=0>

Search the list archives at: http://markmail.org/search/?q=vtkusers<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=Yc%2FiWzkJQbG08fd01aJt%2Bdwwjl9AOHkvu27TzqrCZTI%3D&reserved=0>

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=53VydkGLHAdThqok%2Fr8PyjBhIx1cQcLB1Nuk8nJLX6k%3D&reserved=0>



--
Unpaid intern in BillsBasement at noware dot com



--
Henan Zhao
Website: http://www.csee.umbc.edu/~henan1/<https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fwww.csee.umbc.edu%2F~henan1%2F&data=02%7C01%7Classo%40queensu.ca%7Cae6e57d7c92447bc7d9108d54439083b%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636489934105797878&sdata=E4MyCK5cJY4zgbyX%2B6nfRgi4wDFDzyPK3LzOAtDGuyI%3D&reserved=0>
Graduate student, Dept. of Computer Science and Electrical Engineering,
University of Maryland, Baltimore County
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171216/add3477a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 48513 bytes
Desc: image001.jpg
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171216/add3477a/attachment.jpg>


More information about the vtkusers mailing list