VMTKSURFACEARRAYOPERATION(1)

๐Ÿ“ฆ version 1.5.0, in ubuntu stonking

โœจ NAME โœจ

okay so vmtksurfacearrayoperation โ€” it's a vmtk script, bestie, and its whole name is literally vmtksurfacearrayoperation ๐Ÿ’– that's the manual page we're on, no cap.


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So here's the tea โ˜•: vmtksurfacearrayoperation does automatic piping and parsing options โ€” that's the auto-generated blurb it ships with, and yes it says vmtksurfacearrayoperation about itself twice because it's that kind of main character ๐Ÿ‘‘.

What it actually does: it performs an operation between arrays of two surfaces, and then stores the result in the first surface. two surfaces, one array math moment, result goes home with the first one ๐Ÿ โœจ

๐Ÿ’… Input arguments

  • -id Id (str,1) โ€” default 0: the script id ๐Ÿ†”
  • -handle Self (self,1): handle to self, it's giving self-referential ๐Ÿซถ
  • -disabled Disabled (bool,1) โ€” default 0: turn this on and execution and piping get disabled, like a little pause button โธ๏ธ
  • -i Surface (vtkPolyData,1): the input surface, your first baddie ๐ŸŒธ
  • -ifile SurfaceInputFileName (str,1): filename for the default Surface reader ๐Ÿ“‚
  • -i2 Surface2 (vtkPolyData,1): the second input surface, the duo completes ๐Ÿ‘ฏ
  • -i2file Surface2InputFileName (str,1): filename for the default Surface2 reader ๐Ÿ“‚
  • -operation Operation (str,1) in ['multiplybyc', 'addc', 'add', 'subtract', 'multiply', 'min', 'max'] โ€” default add: the operation to be performed on the array ๐Ÿงฎ and heads up, multiplybyc and addc only require the first input Surface to be specified (the second one can just chill) โœจ
  • -constant Constant (float,1) โ€” default 0.0: the value of the constant for multiplybyc and addc ๐Ÿ”ข
  • -iarray InputArrayName (str,1) โ€” default None: the name of the array on the first surface ๐Ÿท๏ธ
  • -i2array Input2ArrayName (str,1) โ€” default None: the name of the array on the second surface; and if you don't specify it, InputArrayName gets used instead, so it's very "same energy" of it ๐Ÿ™ˆ
  • -resultarray ResultArrayName (str,1) โ€” default Result: the name of the array where the result of the operation is stored ๐Ÿ’พ
  • -ofile SurfaceOutputFileName (str,1): filename for the default Surface writer โœ๏ธ

๐Ÿ‘‘ Output arguments

  • -id Id (str,1) โ€” default 0: the script id ๐Ÿ†” (yes, she's listed again, she contains multitudes)
  • -handle Self (self,1): handle to self ๐Ÿซถ (also back for round two)
  • -o Surface (vtkPolyData,1): the output surface โ€” the final look, the glow up, the result of all that array math ๐Ÿ’…๐Ÿ”ฅ

lowkey important reminder bestie: multiplybyc and addc are the easy ones โ€” they only need the first input Surface. everything else wants both surfaces present, fr fr ๐Ÿซก

and that's the whole page, you ate it ๐ŸŒˆ๐Ÿ’œ

vmtksurfacearrayoperation 1.5 โ€” dated April 2026 โ€” and the manual name on that footer line is literally VMTKSURFACEARRAYOPERATION(1) ๐Ÿ’– bye bestie, go slay some arrays โœจ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from