This is a python friendly wrapper of a vtkPolyData that defines a few useful properties.
| 1395 | Points = property(GetPoints, SetPoints, None, "This property returns the point coordinates of dataset.") |
| 1396 | |
| 1397 | class PolyData(PointSet): |
| 1398 | """This is a python friendly wrapper of a vtkPolyData that defines |
| 1399 | a few useful properties.""" |
| 1400 | |
| 1401 | def GetPolygons(self): |
| 1402 | """Returns the polys as a VTKArray instance.""" |
| 1403 | if not self.VTKObject.GetPolys(): |
| 1404 | return None |
| 1405 | return vtkDataArrayToVTKArray( |
| 1406 | self.VTKObject.GetPolys().GetData(), self) |
| 1407 | |
| 1408 | Polygons = property(GetPolygons, None, None, "This property returns the connectivity of polygons.") |
| 1409 | |
| 1410 | class UnstructuredGrid(PointSet): |
| 1411 | """This is a python friendly wrapper of a vtkUnstructuredGrid that defines |