director.geometryencoder.
decodePolyData
Given a numpy int8 array, deserializes the data to construct a new vtkPolyData object and returns the result.
encodePolyData
Given a vtkPolyData, returns a numpy int8 array that contains the serialization of the data. This array can be passed to the decodePolyData function to construct a new vtkPolyData object from the serialized data.