From: vsv Date: Tue, 14 Jul 2015 12:26:42 +0000 (+0300) Subject: Provide point as + marker for all shapes X-Git-Tag: V_1.3.0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2410783422790b9e0d6c53ed792fbc6188c83d92;p=modules%2Fshaper.git Provide point as + marker for all shapes --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index 4469a2189..69ef0e751 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -35,13 +35,11 @@ ModuleBase_ResultPrs::ModuleBase_ResultPrs(ResultPtr theResult) } TopoDS_Shape aShape = aShapePtr->impl(); 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.)); }