]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Remove edge visualization from solid objects when not highlighted 35/3935/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Wed, 26 Feb 2020 13:37:10 +0000 (15:37 +0200)
committerReino Ruusu <reino.ruusu@semantum.fi>
Wed, 26 Feb 2020 13:37:37 +0000 (15:37 +0200)
gitlab #93

Change-Id: If76196f017db4ddd416541a0c57bf7b9018d2df6

org.simantics.opencascade.vtk/src/org/simantics/opencascade/vtk/vtkSolidObject.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java

index 2dc2416fa32233fe8c5e765a904ddafb07eef0d5..0979eb355b6e16a810fe4e5a782f640844b8f0e7 100644 (file)
@@ -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);
 
index c784b4113f8ebd650f878245a8c9dd45ebd8ebb8..a25bd4ef63523e11f27a85a7f3b8cd7b5583899a 100644 (file)
@@ -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();