]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide point as + marker for all shapes
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 14 Jul 2015 12:26:42 +0000 (15:26 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 14 Jul 2015 12:26:53 +0000 (15:26 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index 4469a2189e12f661e92d143eb841dc693224059d..69ef0e7517952f6f6d9e84f8b8fdef16fe1a52fc 100644 (file)
@@ -35,13 +35,11 @@ ModuleBase_ResultPrs::ModuleBase_ResultPrs(ResultPtr theResult)
   }
   TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
   Set(aShape);
-  if (aShape.ShapeType() == TopAbs_VERTEX) {
-    Handle(Prs3d_Drawer) aDrawer = Attributes();
-    if (aDrawer->HasOwnPointAspect()) 
-      aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
-    else
-      aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
-  }
+  Handle(Prs3d_Drawer) aDrawer = Attributes();
+  if (aDrawer->HasOwnPointAspect()) 
+    aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
+  else
+    aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
 }