VMTKSURFACEDISTANCE(1)
β¨ VMTKSURFACEDISTANCE β¨
okay so bestie, you just typed man vmtksurfacedistance and landed on the User Commands part of the manual, section 1, for this vibe. It's a vmtk script, it lives at VMTKSURFACEDISTANCE(1) up in the header, and I'm gonna walk you through every single thing it does. no skips. no "etc." π
π¦ NAME π¦
vmtksurfacedistance β literally a vmtk script, and the script's name is vmtksurfacedistance. that's it. that's the name. iconic of it honestly π
πΈ DESCRIPTION πΈ
okay so here's the whole deal, and I'm gonna say it the way the page says it because the facts are the facts:
Automatic piping vmtksurfacedistance. Parsing options vmtksurfacedistance.
that's genuinely how the manpage describes itself. it's giving "the script does automatic piping and it parses its options." we move.
vmtksurfacedistance : compute the pointwise minimum distance of the input surface from a reference surface. π«Ά
π Input arguments π
these are the ones you feed in, bestie. the "here's my stuff, please do something with it" pile.
-idId (str,1); default=0β the script id. it's an id. for the script. she's numbered π-handleSelf (self,1) β handle to self. yes, the script has a handle to itself. main character energy, no notes π-disabledDisabled (bool,1); default=0β disable execution and piping. flip this and she simply will not run and will not pipe. she's off duty π΄-iSurface (vtkPolyData,1) β the input surface. this is your actual thing. your mesh. your baby πΈ-ifileSurfaceInputFileName (str,1) β filename for the defaultSurfacereader. so like, instead of handing her avtkPolyDatayou can just point at a file and the default reader goes and gets it for you π-rReferenceSurface (vtkPolyData,1) β the reference surface. this is the "measure me against THIS" surface. the standard. the moment π-rfileReferenceSurfaceInputFileName (str,1) β filename for the defaultReferenceSurfacereader. same deal, but for the reference one β¨-distancearrayDistanceArrayName (str,1) β name of the array where the distance of the input surface to the reference surface has to be stored. you're naming the array, so name her something cute π-distancevectorsarrayDistanceVectorsArrayName (str,1) β name of the array where the distance vectors of the input surface to the reference surface has to be stored. vectors this time, not just the plain distances. it's giving direction π-signeddistancearraySignedDistanceArrayName (str,1) β name of the array where the signed distance of the input surface to the reference surface is stored. okay so listen, here's the sign situation: the distance is positive if the distance vector and the normal to the reference surface have a negative dot product, i.e. if the input surface is outer with respect to the reference surface. lowkey the most important sentence on this whole page, read it twice π«Ά-flipnormalsFlipNormals (bool,1); default=0β flip the normals to the reference surface after computing them. after. not before. respect the order bestie π§-ofileSurfaceOutputFileName (str,1) β filename for the defaultSurfacewriter. where the output goes when she's done π
π Output arguments π
and here's what she hands back to you, the lil goodie bag at the end π
-idId (str,1); default=0β script id. yes, again. she shows up in both lists. consistent queen π-handleSelf (self,1) β handle to self. also again. she contains multitudes π-oSurface (vtkPolyData,1) β the output surface. your result. your masterpiece. slay β¨
heads up bestie: the argument lists up top spell out the types and cardinalities exactly like this βstr,1,self,1,bool,1,vtkPolyData,1β and the defaults are exactly0where a default is shown. don't freestyle those, the script is not chill about it π
that's literally the whole page. every flag, every type, every default, every filename argument, every array name, all accounted for. no gatekeeping here π
and that's the vibe check, fr fr β this page is from vmtksurfacedistance 1.5, dated April 2026. go measure something. 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