revert commit 1255ac62c
and fix original code
This commit is contained in:
parent
d343bb00fa
commit
cd1f010fe7
|
@ -48,6 +48,7 @@
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
#include <TopExp_Explorer.hxx>
|
#include <TopExp_Explorer.hxx>
|
||||||
#include <TopoDS.hxx>
|
#include <TopoDS.hxx>
|
||||||
|
#include <Standard_Version.hxx>
|
||||||
|
|
||||||
|
|
||||||
using namespace PartDesignGui;
|
using namespace PartDesignGui;
|
||||||
|
@ -130,8 +131,9 @@ void ViewProviderAddSub::updateAddSubShapeIndicator() {
|
||||||
|
|
||||||
// create or use the mesh on the data structure
|
// create or use the mesh on the data structure
|
||||||
#if OCC_VERSION_HEX >= 0x060600
|
#if OCC_VERSION_HEX >= 0x060600
|
||||||
|
Standard_Real AngDeflectionRads = AngularDeflection.getValue() / 180.0 * M_PI;
|
||||||
BRepMesh_IncrementalMesh(cShape,deflection,Standard_False,
|
BRepMesh_IncrementalMesh(cShape,deflection,Standard_False,
|
||||||
deflection,Standard_True);
|
AngDeflectionRads,Standard_True);
|
||||||
#else
|
#else
|
||||||
BRepMesh_IncrementalMesh(cShape,deflection);
|
BRepMesh_IncrementalMesh(cShape,deflection);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user