X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ViewerFilters.cpp;h=d4a77c29bf677065a64811a68f862fc44eaeccea;hb=1e696647e5203fc6f23c7acc9e78a720163a225e;hp=3f7b3a3ad5fc853519475e166c67e8d0d0580151;hpb=c2c4d0bbdb8ed0c0fcc5c0fdd7a1a4a742e05073;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ViewerFilters.cpp b/src/ModuleBase/ModuleBase_ViewerFilters.cpp index 3f7b3a3ad..d4a77c29b 100644 --- a/src/ModuleBase/ModuleBase_ViewerFilters.cpp +++ b/src/ModuleBase/ModuleBase_ViewerFilters.cpp @@ -156,24 +156,10 @@ Standard_Boolean ModuleBase_ShapeInPlaneFilter::IsOk( const Prs3d_DatumParts& aPart = aTrOwner->DatumPart(); if (aPart >= Prs3d_DP_XAxis && aPart <= Prs3d_DP_ZAxis) { -#ifdef USE_OCCT_720 gp_Ax2 anAxis = aTrihedron->Component()->Ax2(); gp_Dir aDir = anAxis.XDirection(); gp_Lin aLine(aTrihedron->Component()->Location(), aDir); return aPlane.Contains(aLine, Precision::Confusion(), Precision::Angular()); -#else - Handle(Prs3d_Drawer) aDrawer = aTrihedron->Attributes(); - Handle(Prs3d_DatumAspect) aDatumAspect = aDrawer->DatumAspect(); - Handle(Graphic3d_ArrayOfPrimitives) aPrimitives = - aDatumAspect->ArrayOfPrimitives(aPart); - Standard_Real aX1, anY1, aZ1, aX2, anY2, aZ2; - aPrimitives->Vertice(1, aX1, anY1, aZ1); - aPrimitives->Vertice(2, aX2, anY2, aZ2); - gp_Pnt aPnt1(aX1, anY1, aZ1); - gp_Pnt aPnt2(aX2, anY2, aZ2); - gp_Lin aLine(aPnt1, gp_Dir(gp_Vec(aPnt1, aPnt2))); - return aPlane.Contains(aLine, Precision::Confusion(), Precision::Angular()); -#endif } } }