VMTKSURFACECONNECTIVITY(1)
π VMTKSURFACECONNECTIVITY π
okay so bestie, listen β this one lives in the User Commands manual (section 1, the classic, iykyk) and it's genuinely one of those little scripts that just works. no cap. π
πΈ NAME πΈ
vmtksurfaceconnectivity β vmtk script vmtksurfaceconnectivity β¨
π¦ DESCRIPTION π¦
Automatic piping vmtksurfaceconnectivity Parsing options vmtksurfaceconnectivity
vmtksurfaceconnectivity : extract the largest connected region, the closest point-connected region, the scalar-connected region from a surface, or all connected regions of a surface tagged with an id
likeβ¦ the way it just goes in, figures out which chunks of your surface are actually connected, and hands you back the one you asked for? iconic. it's giving "i sorted your mesh into friend groups and you get to pick your fave." π«Ά
π«Ά Input arguments π«Ά
these are the ones you feed in, babe. the <italic> bits are placeholders, the (type,size) in parentheses is what it actually wants, and default= is what happens if you justβ¦ don't. no judgement. π
-idβ Id (str,1); default=0: script id-handleβ Self (self,1): handle to self-disabledβ Disabled (bool,1); default=0: disable execution and piping-iβ Surface (vtkPolyData,1): the input surface-ifileβ SurfaceInputFileName (str,1): filename for the default Surface reader-methodβ Method (str,1) in['largest', 'closest', 'all']; default=largest: connectivity method-closestpointβ ClosestPoint (float,3); default=None: coordinates of the closest point-rβ ReferenceSurface (vtkPolyData,1): the reference surface, whose barycenter will be used as closest point for the connectivity filter-rfileβ ReferenceSurfaceInputFileName (str,1): filename for the default ReferenceSurface reader-cleanoutputβ CleanOutput (bool,1); default=0: clean the unused points in the output-groupidsarrayβ GroupIdsArrayName (str,1); default=GroupIds: name of the array containing the connectivity scalar-groupidβ GroupId (int,1); default=-1: value of the connectivity scalar-ofileβ SurfaceOutputFileName (str,1): filename for the default Surface writer
π Output arguments π
and here's what it hands back to you when it's done. clean. tidy. slay. π
-idβ Id (str,1); default=0: script id-handleβ Self (self,1): handle to self-oβ Surface (vtkPolyData,1): the output surface
fr fr though β read your-methodvalues carefully before you pipe anything, bestie.largest,closest, andallare three very different vibes and this script will absolutely do exactly what you told it to. π
okay that's the whole page!! vmtksurfaceconnectivity 1.5, April 2026 π ily, go extract something gorgeous, and remember: your meshes deserve main character energy πβπ
π¦ 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