From: azv Date: Thu, 5 May 2016 07:09:33 +0000 (+0300) Subject: Fix problems happened during unit testing X-Git-Tag: V_2.3.0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=7e8909f740a5acbf58cb05527fa87bf007bf4ba6;p=modules%2Fshaper.git Fix problems happened during unit testing --- diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp index bc86af89d..9792467c1 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp @@ -206,8 +206,7 @@ std::list SolveSpaceSolver_Builder::createMirror( std::list aResult; std::list aConstrAttrList; if (theEntity1->type() == ENTITY_POINT) { - if (theEntity2->group() == theGroupID) // theEntity2 is not fixed - makeMirrorPoints(theEntity1, theEntity2, theMirrorLine); + makeMirrorPoints(theEntity1, theEntity2, theMirrorLine); aConstraint = Slvs_MakeConstraint( SLVS_E_UNKNOWN, (Slvs_hGroup)theGroupID, SLVS_C_SYMMETRIC_LINE, (Slvs_hEntity)theSketchID, @@ -264,8 +263,7 @@ std::list SolveSpaceSolver_Builder::createMirror( std::list aMrrList; std::list::const_iterator anIt1 = theEntity1->subEntities().begin(); std::list::const_iterator anIt2 = theEntity2->subEntities().begin(); - if ((*anIt2)->group() == theGroupID) // mirrored point is not fixed - makeMirrorPoints(*anIt1, *anIt2, theMirrorLine); + makeMirrorPoints(*anIt1, *anIt2, theMirrorLine); // Workaround to avoid problems in SolveSpace. // The symmetry of two arcs will be done using symmetry of three points on these arcs: