]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make in bearing_puller big model correct system of constraints: no over-constraint...
authormpv <mpv@opencascade.com>
Thu, 18 May 2017 13:22:07 +0000 (16:22 +0300)
committermpv <mpv@opencascade.com>
Thu, 18 May 2017 13:22:07 +0000 (16:22 +0300)
src/ModelHighAPI/ModelHighAPI_Tools.cpp
test.models/bearing_puller.py

index 75d782817df330b989b81a2d05cf52ce0b955162..6c80784ffb75f4a7b44f4e4006e1af8b9e2a2d7b 100644 (file)
@@ -338,6 +338,7 @@ std::string storeFeatures(const std::string& theDocName, DocumentPtr theDoc,
       }
       std::string anError = aFeatFind->second.compare(aFeat);
       if (!anError.empty()) {
+        anError = "Document " + theDocName + " " + anError;
         return anError;
       }
       aFeaturesCount++;
index def5fb606a409486c900677be1de0dc2c4c346aa..2083db508387a5dcacf343d8a3037e16471d6bc0 100644 (file)
@@ -289,8 +289,6 @@ SketchConstraintRadius_6 = Sketch_4.setRadius(SketchCircle_5.results()[1], "(b-a
 SketchConstraintTangent_6 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_35.result())
 SketchConstraintTangent_7 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_30.result())
 SketchConstraintTangent_8 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_32.result())
-SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchCircle_5.center(), SketchLine_36.result())
-SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_21")
 SketchLine_37 = Sketch_4.addLine(4.894344934278314, 2.394344934278312, 6.25, 0)
 SketchLine_37.setAuxiliary(True)
 SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_31.endPoint(), SketchLine_37.startPoint())
@@ -342,6 +340,8 @@ SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchArc_13.startPoint(
 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_48")
 SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_13.endPoint(), SketchArc_12.endPoint())
 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_49")
+SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchArc_13.center(), SketchLine_32.result())
+SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_21")
 SketchConstraintMirror_1 = Sketch_4.addMirror(SketchLine_40.result(), [SketchArc_13.results()[1], SketchArc_12.results()[1]])
 [SketchArc_14, SketchArc_15] = SketchConstraintMirror_1.mirrored()
 SketchArc_15.setName("SketchArc_6")