Sketcher: OCC checks for knot functionality

This commit is contained in:
Abdullah Tahiri
2017-03-26 00:38:56 +01:00
committed by wmayer
parent 7601cdcffa
commit 99da93192b
3 changed files with 24 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
# include <Precision.hxx>
# include <ShapeFix_Wire.hxx>
# include <TopoDS_Compound.hxx>
# include <Standard_Version.hxx>
#endif
#include <Base/Writer.h>
@@ -2704,6 +2705,7 @@ bool Sketch::updateGeometry()
bsp->setKnots(knots,mult);
#if OCC_VERSION_HEX >= 0x060900
int index = 0;
for(std::vector<int>::const_iterator it5 = mybsp.knotpointGeoids.begin(); it5 != mybsp.knotpointGeoids.end(); ++it5, index++) {
if( *it5 != Constraint::GeoUndef) {
@@ -2716,6 +2718,7 @@ bool Sketch::updateGeometry()
}
}
}
#endif
}
} catch (Base::Exception e) {