From: abk Date: Wed, 9 Jan 2013 12:35:15 +0000 (+0400) Subject: Test case bugs/modalg/buc60462_2 was changed: - tolerances were corrected on input... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e0345b0c1c6d89b8513444f07f835271ba948d35;p=occt-copy.git Test case bugs/modalg/buc60462_2 was changed: - tolerances were corrected on input shapes by the tolerance rule; - set of error messages was changed. --- diff --git a/src/BRepGProp/BRepGProp.cxx b/src/BRepGProp/BRepGProp.cxx index 29f32083de..f6700f9e02 100755 --- a/src/BRepGProp/BRepGProp.cxx +++ b/src/BRepGProp/BRepGProp.cxx @@ -24,7 +24,9 @@ #include #include #include +#include #include +#include #include #include @@ -33,6 +35,7 @@ #include #include #include +#include #ifdef DEB static Standard_Integer AffichEps = 0; #endif @@ -65,6 +68,20 @@ void BRepGProp::LinearProperties(const TopoDS_Shape& S, GProp_GProps& SProps){ BRepGProp_Cinert CG(BAC,P); SProps.Add(CG); } + else + { + GProp_PGProps aPD; + for (TopExp_Explorer aVE(anES, TopAbs_VERTEX); aVE.More(); aVE.Next()) + { + TopoDS_Vertex aVS = TopoDS::Vertex(aVE.Current()); + Handle_BRep_TVertex & aVG = (Handle_BRep_TVertex &)aVS.TShape(); + gp_Pnt aP = aVG->Pnt(); + aP.Transform(anES.Location()); + aP.Transform(S.Location()); + aPD.AddPoint(aP); + } + SProps.Add(aPD); + } } }