Fixes for OCC 6.3

This commit is contained in:
wmayer
2012-12-04 11:32:30 +01:00
parent b76b47360a
commit 18a365ca00
5 changed files with 9 additions and 28 deletions

View File

@@ -47,6 +47,7 @@
# include <BRepBuilderAPI_MakeEdge.hxx>
#endif
#include <Base/Tools.h>
#include <Mod/Part/App/TopoShape.h>
#include "FeatureDraft.h"

View File

@@ -57,6 +57,7 @@
# include <Extrema_POnCurv.hxx>
# include <BRepAdaptor_CompCurve.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <Standard_Version.hxx>
#endif
@@ -562,7 +563,11 @@ const bool SketchBased::checkLineCrossesFace(const gp_Lin &line, const TopoDS_Fa
for (int i = 1; i <= intersector.NbExt(); i++) {
#if OCC_VERSION_HEX >= 0x060500
if (intersector.SquareDistance(i) < Precision::Confusion()) {
#else
if (intersector.Value(i) < Precision::Confusion()) {
#endif
if (intersector.IsParallel()) {
// A line that is coincident with the axis produces three intersections
// 1 with the line itself and 2 with the adjacent edges