boolean computeNormals = true;
if (computeNormals) {
vtkPolyDataNormals normals = new vtkPolyDataNormals();
- normals.SetInput(polyData);
+ normals.SetInputData(polyData);
mapper.SetInputConnection(normals.GetOutputPort());
normals.GetOutputPort().Delete();
normals.Delete();
} else {
- mapper.SetInput(polyData);
+ mapper.SetInputData(polyData);
}
if (mesh.getColors() != null) {