Sketcher: OCC checks for knot functionality
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user