I've been using vmtkCenterlineClipper in interactive mode, and it works 
fine for clipping one branch.  I haven't been able to get it to clip more than 
one branch, though.  I take input from vmtkBranchExtractor like the branch 
tutorial.  Here is that portion of my script:

    centerlines = vmtkscripts.vmtkCenterlines()
    centerlines.Surface = aneurysmVesselSurface
    centerlines.Execute()

    branchExtractor = vmtkscripts.vmtkBranchExtractor()
    branchExtractor.GroupIdsArrayName = 'CenterlineGroupID'
    branchExtractor.RadiusArrayName = 'MaximumInscribedSphereRadius'
    branchExtractor.BlankingArrayName = 'Blanking'
    branchExtractor.Centerlines = centerlines.Centerlines
    branchExtractor.Execute()

    clippingCenterlines = branchExtractor.Centerlines
    branchClipper = vmtkscripts.vmtkBranchClipper()
    branchClipper.Centerlines = clippingCenterlines
    branchClipper.Interactive = 1
    branchClipper.GroupIdsArrayName = 'CenterlineGroupID'
    branchClipper.RadiusArrayName = 'MaximumInscribedSphereRadius'
    branchClipper.BlankingArrayName = 'Blanking'
    branchClipper.Surface = aneurysmVesselSurface
    branchClipper.InsideOut = 1
    branchClipper.Execute()

    aneurysmVesselSurface = branchClipper.Surface
    clippingCenterlines = branchClipper.Centerlines

    clippedViewer = vmtkscripts.vmtkSurfaceViewer()
    clippedViewer.Surface = aneurysmVesselSurface
    clippedViewer.Execute()


Thanks,
Ben Berkowitz
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to