X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ResultSketchPrs.cpp;h=c6e5585a941067e4b702bd230f20afda9b77dc60;hb=1e06d55e5ca7dd930512a9ae565497f81ddb6b72;hp=6f07b0f225bb39268a7288c791ae3ec67fc4d6b5;hpb=cb0a7bdbea9f94ea30879522b230cbe773b60dc3;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ResultSketchPrs.cpp b/src/PartSet/PartSet_ResultSketchPrs.cpp index 6f07b0f22..c6e5585a9 100644 --- a/src/PartSet/PartSet_ResultSketchPrs.cpp +++ b/src/PartSet/PartSet_ResultSketchPrs.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -48,13 +48,19 @@ #include #include -#define DEBUG_WIRE +//#define DEBUG_WIRE #ifdef DEBUG_WIRE #include #include #endif +#include + +#if OCC_VERSION_HEX > 0x070400 +#include +#endif + //******************************************************************************************* IMPLEMENT_STANDARD_RTTIEXT(PartSet_ResultSketchPrs, ViewerData_AISShape); @@ -215,7 +221,11 @@ void PartSet_ResultSketchPrs::appendShapeSelection(const Handle(SelectMgr_Select const TopAbs_ShapeEnum& theTypeOfSelection) { // POP protection against crash in low layers +#if OCC_VERSION_HEX > 0x070400 + Standard_Real aDeflection = StdPrs_ToolTriangulatedShape::GetDeflection(theShape, myDrawer); +#else Standard_Real aDeflection = Prs3d::GetDeflection(theShape, myDrawer); +#endif try { StdSelect_BRepSelectionTool::Load(theSelection, this,