def Execute(self): if self.Surface == None: self.PrintError('Error: No Surface.') surfmesh = vtkvmtk.vtkvmtkSurfMeshWrapper() surfmesh.SetInputData(self.Surface) surfmesh.SetNodeSpacing(self.NodeSpacing) surfmesh.Update() self.Surface = surfmesh.GetOutput()
def Execute(self): if self.Surface == None: self.PrintError('Error: No Surface.') surfmesh = vtkvmtk.vtkvmtkSurfMeshWrapper() surfmesh.SetInput(self.Surface) surfmesh.SetNodeSpacing(self.NodeSpacing) surfmesh.Update() self.Surface = surfmesh.GetOutput() if self.Surface.GetSource(): self.Surface.GetSource().UnRegisterAllOutputs()