VMTKPETERSURFACECLIPPER(1)
π NAME π
vmtkpetersurfaceclipper β literally the vmtk script called vmtkpetersurfaceclipper, no notes. It's a User Command, it lives in section 1 of the manual, and it's about to eat.
β¨ DESCRIPTION β¨
Okay so bestie, real talk: this is a vmtk script, and the vibe is automatic piping. Also it's doing some parsing options business. That's the whole trailer, we're not gonna overthink it. π«Ά
Here's the actual tea though: petersurfaceclipper lets you interactively clip a surface with a box. Iconic behavior. π
π Input arguments π
-id Id (str,1); default=0β the script id, babes. Defaults to0.-handle Self (self,1)β a handle to self. Yes, it's giving main character energy, it's literally handing you itself.-disabled Disabled (bool,1); default=0β flip this and you disable execution and piping. Default is0, so by default it's alive and thriving.-i Surface (vtkPolyData,1)β the input surface. This is the thing we're clipping, bestie.-ifile SurfaceInputFileName (str,1)β filename for the defaultSurfacereader.-iclip ClipsIn (vtkMultiBlockDataSet,1)β the input clips file.-iclipfile ClipsInInputFileName (str,1)β filename for the defaultClipsInreader.-type WidgetType (str,1) in ['box', 'sphere']; default=boxβ what kind of widget we're clipping with. You get'box'or'sphere'. Default isbox. Pick your fighter. π¦-transform Transform (vtkTransform,1)β the widget transform. Super useful in case of piping of multiple clipping scripts, iykyk.-cleanoutput CleanOutput (bool,1); default=1β toggle cleaning the unused points. Default1, so it's tidy by default. β¨-insideout InsideOut (bool,1); default=0β toggle switching output and clipped surfaces. Default0.-interactive Interactive (bool,1); default=1β toggle clipping with a widget or with a pre-defined scalar field. Default1(widget mode, live and direct).-array ClipArrayName (str,1); default=Noneβ name of the array to clip with in case of non-interactive clipping. Default isNone, so bring your own array.-value ClipValue (float,1); default=0.0β the scalar value at which to perform the clipping in case of non-interactive clipping. Default0.0.-renderer vmtkRenderer (vmtkRenderer,1)β an external renderer, if you got one.-ofile SurfaceOutputFileName (str,1)β filename for the defaultSurfacewriter.-oclippedfile ClippedSurfaceOutputFileName (str,1)β filename for the defaultClippedSurfacewriter.-ocutlinesfile CutLinesOutputFileName (str,1)β filename for the defaultCutLineswriter.-oclipfile ClipsOutOutputFileName (str,1)β filename for the defaultClipsOutwriter.
πΈ Output arguments πΈ
-id Id (str,1); default=0β the script id again, because yes, and default is0.-handle Self (self,1)β handle to self. Still the moment. π-o Surface (vtkPolyData,1)β the output surface.-oclipped ClippedSurface (vtkPolyData,1)β the clipped surface.-ocutlines CutLines (vtkPolyData,1)β the cutlines, the lil edges where the cutting happened.-oclip ClipsOut (vtkMultiBlockDataSet,-1)β the output surfaces associated with the clips made.-otransform Transform (vtkTransform,1)β the output widget transform.
fr fr, when you're piping these together,-transformand-otransformare the ones that keep your multiple clipping scripts from falling apart. no cap. π
And that's the whole page, bestie, we ate. π This was vmtkpetersurfaceclipper version 1.5, dated April 2026, from the User Commands corner of the manual β VMTKPETERSURFACECLIPPER (1). Go clip something cute. π
π¦ 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