Example #1
0
    def Execute(self):

        if self.Mesh == None:
            self.PrintError('Error: No input mesh.')

        linearizeFilter = vtkvmtk.vtkvmtkLinearizeMeshFilter()
        linearizeFilter.SetInputData(self.Mesh)
        linearizeFilter.SetCleanOutput(self.CleanOutput)
        linearizeFilter.Update()

        self.Mesh = linearizeFilter.GetOutput()
Example #2
0
    def Execute(self):

        if self.Mesh == None:
            self.PrintError('Error: No input mesh.')

        linearizeFilter = vtkvmtk.vtkvmtkLinearizeMeshFilter()
        linearizeFilter.SetInput(self.Mesh)
        linearizeFilter.SetCleanOutput(self.CleanOutput)
        linearizeFilter.Update()

        self.Mesh = linearizeFilter.GetOutput()

        if self.Mesh.GetSource():
            self.Mesh.GetSource().UnRegisterAllOutputs()