From: Reino Ruusu Date: Wed, 26 Feb 2020 13:37:10 +0000 (+0200) Subject: Remove edge visualization from solid objects when not highlighted X-Git-Tag: v1.43.0~56 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F3935%2F1;p=simantics%2F3d.git Remove edge visualization from solid objects when not highlighted gitlab #93 Change-Id: If76196f017db4ddd416541a0c57bf7b9018d2df6 --- diff --git a/org.simantics.opencascade.vtk/src/org/simantics/opencascade/vtk/vtkSolidObject.java b/org.simantics.opencascade.vtk/src/org/simantics/opencascade/vtk/vtkSolidObject.java index 2dc2416f..0979eb35 100644 --- a/org.simantics.opencascade.vtk/src/org/simantics/opencascade/vtk/vtkSolidObject.java +++ b/org.simantics.opencascade.vtk/src/org/simantics/opencascade/vtk/vtkSolidObject.java @@ -407,7 +407,7 @@ public class vtkSolidObject { vtkProperty prop = partEdgesActor.GetProperty(); prop.SetColor(0, 0, 0); - prop.SetLineWidth(2.0); + prop.SetLineWidth(1.0); prop.Delete(); partEdgesActor.SetMapper(partEdgesMapper); diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java index c784b411..a25bd4ef 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java @@ -258,6 +258,7 @@ public class GeometryComponent { if (hover) color = new double[]{1,0,1}; for (vtkProp3D prop : solidObject.getEdges()) { + prop.SetVisibility(hover ? 1 : 0); vtkProperty property = ((vtkActor)prop).GetProperty(); property.SetColor(color); property.Delete();