revert commit 1255ac62c and fix original code

This commit is contained in:
wmayer 2017-03-01 22:54:14 +01:00
parent d343bb00fa
commit cd1f010fe7

View File

@ -48,6 +48,7 @@
#include <BRep_Tool.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <Standard_Version.hxx>
using namespace PartDesignGui;
@ -130,8 +131,9 @@ void ViewProviderAddSub::updateAddSubShapeIndicator() {
// create or use the mesh on the data structure
#if OCC_VERSION_HEX >= 0x060600
Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * M_PI;
BRepMesh_IncrementalMesh(cShape,deflection,Standard_False,
deflection,Standard_True);
AngDeflectionRads,Standard_True);
#else
BRepMesh_IncrementalMesh(cShape,deflection);
#endif