To clarify:  the problem is that it doesn't clip any branches when the 
InsideOut parameter is true and more than one branch is selected.  The problem 
doesn't occur when InsideOut is false or only one branch is selected.

Thanks,
Ben Berkowitz


________________________________
From: Berkowitz, Benjamin M [[email protected]]
Sent: Monday, February 13, 2012 10:39 AM
To: [email protected]
Subject: [vmtk-users] vmtkCenterlineClipper

    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
[email protected]
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to