/[escript]/trunk/pyvisi/py_src/normals.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/normals.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC
# Line 11  class Normals: Line 11  class Normals:
11      avoids the tensors from appearing black in color).      avoids the tensors from appearing black in color).
12      """      """
13    
14      def __init__(self, object):      def __init__(self):
15          """          """
16          Initialise the normals.          Initialise the normals.
17            """
18    
19            self.__vtk_poly_data_normals = vtk.vtkPolyDataNormals()
20    
21        def _setupNormals(self, object):
22            """
23            Setup the normals.
24    
25          @type object: vtkPolyData, etc          @type object: vtkPolyData, etc
26          @param object: Input for the normals          @param object: Input for the normals
27          """          """
28    
29          self.__object = object          self.__object = object
         self.__vtk_poly_data_normals = vtk.vtkPolyDataNormals()  
30          self.__setInput()          self.__setInput()
31    
32      def __setInput(self):      def __setInput(self):
# Line 30  class Normals: Line 36  class Normals:
36    
37          self.__vtk_poly_data_normals.SetInput(self.__object)          self.__vtk_poly_data_normals.SetInput(self.__object)
38    
39      def _getOutput(self):      def _getNormalsOutput(self):
40          """          """
41          Return the output of the normals.          Return the output of the normals.
42    

Legend:
Removed from v.1147  
changed lines
  Added in v.1148

  ViewVC Help
Powered by ViewVC 1.1.26