Hi Patrick, 
 I see what the issue is. In fact, there currently is no check in the
clipping code that guarantees that this situation doesn't occur, and
I've been meaning to handle this in a better way for a long time.

More than being wide, the vein is not convex. This means that 
the centerline has to lay in one of the two "ears" of the cross-section,
and in this case it chose the outer ear.

I included this into the fixes for the next release. In the meantime, what
you could do is to smooth the model using vmtksurfacesmoothing to
make the cross section is less concave and compute the centerlines
from the smoothed model. Then, you can use that set of centerlines 
to clip the original model.

vmtksurfacesmoothing -ifile surface.vtp -passband 0.01 -iterations 30 -ofile 
surface_smooth.vtp

It would be great if you could send me your surface (or a decimated
version of it) so that I can use it to test my future solution (I won't use
it for anything else).

Best,


Luca



On Feb 1, 2013, at 2:48 AM, Patrick McGah wrote:

> Hi all,
> 
> I'm having a problem with clipping branches. I've been able to
> successfully calculated the center lines and extracted the branch
> groups (the geometry an AV fistula - a vein that's fully connected to
> an artery - with one inflow artery, an outflow vein, and an outflow
> artery). However, when I use vmtkbranchclipper, the outflow vein is
> being cut incorrectly.  A small segment of the vein is being grouped
> with the inflow artery. Ultimately I want to map and patch the
> surfaces of each branch, but the artery can't be mapped correctly
> since it's topology is now no longer a cylinder shape. I think part of
> this problem is that the vein is very wide, and so the distance from
> the wall to the center line is very large. As a result, part of the
> vein wall is actually closer in distance to the artery centerline (I
> think). Any thought or ways to work around this?
> 
> Thanks,
> 
> Patrick
> <Screenshot-1.png><Screenshot-2.png>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to