From: mpv Date: Thu, 18 May 2017 13:22:07 +0000 (+0300) Subject: Make in bearing_puller big model correct system of constraints: no over-constraint... X-Git-Tag: V_2.7.1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=932e3d618e4157ce19cef7c5c9cc4b9f9d3db0b4;p=modules%2Fshaper.git Make in bearing_puller big model correct system of constraints: no over-constraint situation, but fully constrained Sketch_1 in Arm parts. --- diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index 75d782817..6c80784ff 100644 --- a/src/ModelHighAPI/ModelHighAPI_Tools.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Tools.cpp @@ -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++; diff --git a/test.models/bearing_puller.py b/test.models/bearing_puller.py index def5fb606..2083db508 100644 --- a/test.models/bearing_puller.py +++ b/test.models/bearing_puller.py @@ -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")