I have a simple polygon where all points belong to the same plane, therefore the normal vectors at each point should be the same. The problem I have is that I can’t get those vectors.
For example, I have the following code.
normals = vtk.vtkPolyDataNormals() normals.SetInputData(poly_data) # existing polydata normals.ComputePointNormalsOn() normals.ComputeCellNormalsOn() normals.SplittingOff() normals.ConsistencyOn() normals.AutoOrientNormalsOn() normals.Update()
From here I do not know how to obtain these vectors. I have tried different ways but apparently I am doing something wrong.