From 2410783422790b9e0d6c53ed792fbc6188c83d92 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 14 Jul 2015 15:26:42 +0300 Subject: [PATCH] Provide point as + marker for all shapes --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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.)); } -- 2.39.2