MCPcopy Create free account
hub / github.com/Kitware/VTK / PolyData

Class PolyData

Wrapping/Python/vtkmodules/numpy_interface/dataset_adapter.py:1397–1408  ·  view source on GitHub ↗

This is a python friendly wrapper of a vtkPolyData that defines a few useful properties.

Source from the content-addressed store, hash-verified

1395 Points = property(GetPoints, SetPoints, None, "This property returns the point coordinates of dataset.")
1396
1397class 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
1410class UnstructuredGrid(PointSet):
1411 """This is a python friendly wrapper of a vtkUnstructuredGrid that defines

Callers 1

WrapDataObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected