X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fshape%2FvtkShape.java;h=8157dfe36c86cd5c8e9b56851277c47e67b11489;hb=refs%2Fchanges%2F28%2F3328%2F1;hp=c992547fa76bce98a041f8a2501733bc729ef861;hpb=9783d236a085584ac964444b365b566fd6a921ba;p=simantics%2F3d.git diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/shape/vtkShape.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/shape/vtkShape.java index c992547f..8157dfe3 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/shape/vtkShape.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/shape/vtkShape.java @@ -148,14 +148,14 @@ public class vtkShape { linePoints.Delete(); aLine.GetPointIds().Delete(); - aLine.Delete(); - aLineGrid.Delete(); - aLineMapper.Delete(); - - aLineActor.GetProperty().SetColor(0, 0, 0); - aLineActor.GetProperty().Delete(); - - return aLineActor; + aLine.Delete(); + aLineGrid.Delete(); + aLineMapper.Delete(); + + aLineActor.GetProperty().SetColor(0, 0, 0); + aLineActor.GetProperty().Delete(); + + return aLineActor; } /** @@ -182,14 +182,14 @@ public class vtkShape { vtkActor aLineActor = new vtkActor(); aLineActor.SetMapper(aLineMapper); //aLineActor.GetProperty().SetDiffuseColor(.2, 1, 1); - - linePoints.Delete(); - aLine.GetPointIds().Delete(); - aLine.Delete(); - aLineGrid.Delete(); - aLineMapper.Delete(); - - return aLineActor; + + linePoints.Delete(); + aLine.GetPointIds().Delete(); + aLine.Delete(); + aLineGrid.Delete(); + aLineMapper.Delete(); + + return aLineActor; } }