VMTKBRANCHSECTIONS(1)
π NAME π
vmtkbranchsections β the vmtk script literally named vmtkbranchsections. One (1) manual page, filed under User Commands, and yes bestie we are reading it together, grabbing a lil snack first π
β¨ DESCRIPTION β¨
Okay so here's the auto-generated opener, exactly as the script spits it out, no notes: "Automatic piping vmtkbranchsections Parsing options vmtkbranchsections" β that's the piping-and-parsing boilerplate, it's giving robot voice, we respect it π
Now the real tea: vmtkbranchsections : compute geometric properties of branch sections located a fixed number of spheres away from each bifurcation. The script takes in input the surface and the relative centerlines, both already split into branches β like, that part is not optional, they come pre-split, okay? π¦
π Input arguments π
-idβId(str,1); default=0: the script id. every script has one, it's their lil name tag πͺͺ-handleβSelf(self,1): handle to self. it's the handle to self, iykyk-disabledβDisabled(bool,1); default=0: set this and execution and piping are justβ¦ off. nothing runs. silence π-iβSurface(vtkPolyData,1): your input surface β and it must already be split into branches, we said what we said-ifileβSurfaceInputFileName(str,1): the filename for the defaultSurfacereader-centerlinesβCenterlines(vtkPolyData,1): the input centerlines β also already split into branches β¨-centerlinesfileβCenterlinesInputFileName(str,1): the filename for the defaultCenterlinesreader-distancespheresβNumberOfDistanceSpheres(int,1) >=0; default=1: how far away from the bifurcation the sections get taken, measured in number of inscribed spheres, where each sphere touches the center of the previous one π«§ obsessed with the geometry of it tbh-reverseβReverseDirection(bool,1); default=0: toggle it and sections start generating from the end of the branches instead of the start. lil direction flip π-radiusarrayβRadiusArrayName(str,1); default=MaximumInscribedSphereRadius: the array where the centerline radius is stored-groupidsarrayβGroupIdsArrayName(str,1); default=GroupIds: the array where centerline group ids are stored-centerlineidsarrayβCenterlineIdsArrayName(str,1); default=CenterlineIds: the array where centerline ids are stored-tractidsarrayβTractIdsArrayName(str,1); default=TractIds: the array where centerline tract ids are stored-blankingarrayβBlankingArrayName(str,1); default=Blanking: the array where the centerline blanking information about branches is stored-branchsectiongroupidsβBranchSectionGroupIdsArrayName(str,1); default=BranchSectionGroupIds: the array where the group id that each section belongs to has to be stored-branchsectionareaβBranchSectionAreaArrayName(str,1); default=BranchSectionArea: the array where the area of bifurcation sections has to be stored-branchsectionminsizeβBranchSectionMinSizeArrayName(str,1); default=BranchSectionMinSize: the array where the minimum diameter of each section has to be stored-branchsectionmaxsizeβBranchSectionMaxSizeArrayName(str,1); default=BranchSectionMaxSize: the array where the maximum diameter of each bifurcation section has to be stored-branchsectionshapeβBranchSectionShapeArrayName(str,1); default=BranchSectionShape: the array where the shape index has to be stored β and the shape index is, and I quote, the ratio between minimum and maximum diameter, of each bifurcation section π-branchsectionclosedβBranchSectionClosedArrayName(str,1); default=BranchSectionClosed: the array containing1if a section is closed and0otherwise. binary icon behavior-branchsectiondistancespheresβBranchSectionDistanceSpheresArrayName(str,1); default=BranchSectionDistanceSpheres: the array containing the number of distance spheres the section is taken at-ofileβBranchSectionsOutputFileName(str,1): the filename for the defaultBranchSectionswriter
π Output arguments π
-idβId(str,1); default=0: script id. yes again. it comes in and it goes out πͺͺ-handleβSelf(self,1): handle to self. also again. consistency queen π-oβBranchSections(vtkPolyData,1): the output sections, bestie, the whole point, the main character π-branchsectiongroupidsβBranchSectionGroupIdsArrayName(str,1); default=BranchSectionGroupIds: the array where the group id to which each section belongs are stored-branchsectionareaβBranchSectionAreaArrayName(str,1); default=BranchSectionArea: the array where the area of bifurcation sections are stored-branchsectionminsizeβBranchSectionMinSizeArrayName(str,1); default=BranchSectionMinSize: the array where the minimum diameter of each section are stored-branchsectionmaxsizeβBranchSectionMaxSizeArrayName(str,1); default=BranchSectionMaxSize: the array where the minimum diameter of each bifurcation section has to be stored (yes, the docs say minimum here in the output list, we are simply reporting what it says, don't shoot the messenger π)-branchsectionshapeβBranchSectionShapeArrayName(str,1); default=BranchSectionShape: the array where the shape index β that's the ratio between minimum and maximum diameter β of each bifurcation section are stored-branchsectionclosedβBranchSectionClosedArrayName(str,1); default=BranchSectionClosed: the array containing1if a section is closed and0otherwise-branchsectiondistancespheresβBranchSectionDistanceSpheresArrayName(str,1); default=BranchSectionDistanceSpheres: the array containing the number of distance spheres the section is taken at
π‘ tiny heads-up bestie: a bunch of these names appear once in Input arguments and again in Output arguments. Same flags, same defaults β that's just how the page lists them. Don't @ me, @ the manpage.
and that's the whole page, we ate, no crumbs left πΈ
sign-off: this was vmtkbranchsections version 1.5, fresh out of April 2026 π
slay, go split some branches (remember: already split π), periodt π«Ά
π¦ where this page comes from
- ubuntu stonking: vmtk 1.5.0+dfsg1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms