VMTKSURFACECONNECTIVITY(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

πŸ’– 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 -method values carefully before you pipe anything, bestie. largest, closest, and all are 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