VMTKSURFACECURVATURE(1)
πΈ VMTKSURFACECURVATURE πΈ
okay bestie, gather round, because this is vmtksurfacecurvature β a User Commands girly from the VMTK fam, and she is all about that curvature life. no cap. π
β¨ NAME β¨
vmtksurfacecurvature β literally just the vmtk script called vmtksurfacecurvature. she does what it says on the tin, and the tin says curvature. π
π DESCRIPTION π
so here's the vibe: vmtksurfacecurvature does the automatic piping thing that all the vmtk scripts do (yes, the classic Automatic piping / Parsing options combo, it's giving family tradition), and then:
vmtksurfacecurvature : computes the curvature of an input surface, and β get this β optionally reports results back to a reference surface (by point id). that's the glow-up. π¦
heads up bestie: there are two whole groups of arguments down here β the Input arguments and the Output arguments β and the same names show up in both (-id,-handle), so don't get it twisted. iykyk.
π Input arguments π
-idβ oh wait, the full name isId, type(str,1), and the default isdefault=0. it's the script id, the little name tag she wears at the party. π-handleβSelf, type(self,1). this is the handle to self, no default listed, it's justβ¦ her. main character energy, honestly. π-disabledβDisabled, type(bool,1),default=0. flip this and you disable execution and piping, i.e. she sits the whole thing out. sometimes you just need a nap. π-iβSurface, type(vtkPolyData,1). this is the input surface. THE moment. THE subject. β¨-ifileβSurfaceInputFileName, type(str,1). the filename for the default Surface reader, in case you'd rather hand her a file than an object. π-rβReferenceSurface, type(vtkPolyData,1). the reference surface β aka where the results go to get reported back by point id. π«Ά-rfileβReferenceSurfaceInputFileName, type(str,1). the filename for the default ReferenceSurface reader. yes, she even has a reader for the reference one. so thorough. π§-typeβCurvatureType, type(str,1), and it has to be one of['mean', 'gaussian', 'maximum', 'minimum'];default=mean. this picks the type of surface curvature to compute. mean is the default bestie but gaussian, maximum and minimum are all right there waiting their turn. π-absoluteβAbsoluteCurvature, type(bool,1),default=0. turn it on and she'll output the absolute value of curvature β no more sad little negatives. β-medianβMedianFiltering, type(bool,1),default=0. this one outputs curvature after median filtering, which is the whole point: it suppresses numerical noise speckles. literally a skincare routine for your mesh. πΈ-boundariesβCurvatureOnBoundaries, type(bool,1),default=0. flip it to compute curvature on boundaries too, not just the cozy interior. π-reciprocalβBoundedReciprocal, type(bool,1),default=0. outputs the bounded reciprocal of curvature. she's being polite about the denominator, we love a safe queen. π-epsilonβEpsilon, type(float,1),default=1.0. this is the bounded reciprocal epsilon at the denominator β the literal little buffer keeping that reciprocal from going feral. π₯-offsetβOffset, type(float,1),default=0.0. offsets the curvature by the specified value. default is a chill0.0, so no sneaky shifting unless you ask. π-ofileβSurfaceOutputFileName, type(str,1). the filename for the default Surface writer. where the curvature goes to live out its dreams. π
π¦ Output arguments π¦
-idβId, type(str,1),default=0. yep, the script id again β she contains multitudes (and both an input and an output version of this arg). π-handleβSelf, type(self,1). the handle to self on the way back out. she's still her. iconic. β¨-oβSurface, type(vtkPolyData,1). the output surface β the one that's all curvy and gorgeous and ready to be piped onward. π
tiny reminder: everything above is vmtk's automatic piping + parsing options situation, so these args are meant to be piped around like a group chat. don't fight the pipeline, bestie. π«Ά
and that's the whole page, periodt. π
this vibe check was brought to you by vmtksurfacecurvature 1.5, dated April 2026 β thanks for coming to my ted talk, go compute some curvature, mwah! ππβ¨
π¦ 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