Surface capper / boundary extractor

257 views
Skip to first unread message

Yumnah Mohamied

unread,
Nov 4, 2014, 12:41:39 PM11/4/14
to vmtk-...@googlegroups.com
Hi All, 

I'm having problems running any script that identifies boundaries/holes on the .tec input surface file (obtained from an in-house code). 

Using vmtksurfacecapper as an example, and a basic test case of a cylindrical pipe, the script will run and give an output with no error messages, however, in the renderer, rather than identifying the two boundary holes of the pipe, hundreds of apparent hole ids are given throughout the surface (see attached file 'surface capper.png'). 

I've attached the input file for this test case also: 'surface.tec'. I was originally having this problem on a full aorta model. 

Any help would be greatly appreciated. I am running an old binary package (version 1.0.1) on mac OS X 10.8.5. 

Cheers, 
Yumnah


surface capper.png
surface.tec

Luca Antiga

unread,
Nov 5, 2014, 4:47:00 PM11/5/14
to vmtk-...@googlegroups.com, vmtk-...@googlegroups.com
Hello Yumnah,
apparently the reader cannot guess the triangles are connected, I suppose all triangle vertices are duplicated instead of being shared among triangles.

Try running the surface through vmtksurfacetriangle, which will merge and stitch everything back together, this way 

vmtksurfacetriangle -ifile surface.tec --pipe vmtksurfacecapper -ofile surface_capped.vtp

Luca


— 
Luca Antiga, PhD 
Co-founder and Principal Scientist, Orobix Srl
via G. Camozzi 144, Bergamo, Italy

twitter: @lantiga 
mobile: +39.347.43.16.596


--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<surface capper.png><surface.tec>

Message has been deleted

Yumnah Mohamied

unread,
Nov 7, 2014, 1:52:37 PM11/7/14
to vmtk-...@googlegroups.com
Hi Luca, 

Brilliant thanks very much. It solved the problem with the pipe test case. However, on my actual geometry of interest, although it improves the situation, there still remains some apparent holes. Close up view of one of these shows a small gap between the elements. Is there any way around this? 

Cheers, 
Yumnah
Screen Shot 2014-11-07 at 18.47.55.png

Luca Antiga

unread,
Nov 10, 2014, 7:20:36 AM11/10/14
to vmtk-...@googlegroups.com, vmtk-...@googlegroups.com
Apparently you need to merge vertices using a tolerance.
VTK has that, however vmtk doesn’t expose this functionality at the script level.
Try loading the surface in Paraview and select the Clean filter. You’ll then be able to specify a tolerance that controls how close two vertices have to be in order to be considered coinciding and be merged in the output dataset.
Hope this helps.

Luca



— 
Luca Antiga, PhD 
Co-founder and Principal Scientist, Orobix Srl
via G. Camozzi 144, Bergamo, Italy

twitter: @lantiga 
mobile: +39.347.43.16.596


<Screen Shot 2014-11-07 at 18.47.55.png>

Yumnah Mohamied

unread,
Nov 10, 2014, 11:16:08 AM11/10/14
to vmtk-...@googlegroups.com
That did the trick! Was trying and failing to do that myself in matlab - didn't know of that functionality in paraview. Thanks very much!

Cheers,
Yumnah
Reply all
Reply to author
Forward
0 new messages