From: Artem Zhidkov Date: Thu, 28 May 2020 12:37:27 +0000 (+0300) Subject: Avoid rotating of 2D coordinates for faces based on sketch elements. X-Git-Tag: V9_5_0rc1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6039fe3fa2a27e2a49ee2ebee6295ed154eda498;p=modules%2Fshaper.git Avoid rotating of 2D coordinates for faces based on sketch elements. --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp index 867bb355b..6e6e3f999 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp @@ -202,7 +202,7 @@ static void sortAreas(TopTools_ListOfShape& theAreas, void GeomAlgoAPI_SketchBuilder::build( const std::shared_ptr& theOrigin, - const std::shared_ptr& /*theDirX*/, + const std::shared_ptr& theDirX, const std::shared_ptr& theNorm, const std::list >& theEdges) { @@ -213,7 +213,8 @@ void GeomAlgoAPI_SketchBuilder::build( BRep_Builder aBuilder; // Planar face, where the sketch was built - Handle(Geom_Surface) aPlane(new Geom_Plane(theOrigin->impl(), theNorm->impl())); + gp_Ax3 aPlnAxes(theOrigin->impl(), theNorm->impl(), theDirX->impl()); + Handle(Geom_Surface) aPlane(new Geom_Plane(aPlnAxes)); TopoDS_Face aPlnFace; aBuilder.MakeFace(aPlnFace, aPlane, Precision::Confusion());