1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0024397: BRepBuilderAPI_Copy works not correct

This commit is contained in:
ifv 2013-12-10 15:40:40 +04:00
parent 6c7ddf00ce
commit 7527d6d020

View File

@ -55,7 +55,12 @@ void BRepGProp::LinearProperties(const TopoDS_Shape& S, GProp_GProps& SProps){
// Standard_Integer n,i; // Standard_Integer n,i;
TopExp_Explorer ex; TopExp_Explorer ex;
for (ex.Init(S,TopAbs_EDGE); ex.More(); ex.Next()) { for (ex.Init(S,TopAbs_EDGE); ex.More(); ex.Next()) {
BAC.Initialize(TopoDS::Edge(ex.Current())); const TopoDS_Edge& aE = TopoDS::Edge(ex.Current());
if(!BRep_Tool::IsGeometric(aE))
{
continue;
}
BAC.Initialize(aE);
BRepGProp_Cinert CG(BAC,P); BRepGProp_Cinert CG(BAC,P);
SProps.Add(CG); SProps.Add(CG);
} }