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): |
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 |
|
|