]> OCCT Git - occt-copy.git/commitdiff
0024397: BRepBuilderAPI_Copy works not correct
authorifv <igor.feoktistov@opencascade.com>
Tue, 10 Dec 2013 11:40:40 +0000 (15:40 +0400)
committerifv <igor.feoktistov@opencascade.com>
Thu, 12 Dec 2013 14:13:18 +0000 (18:13 +0400)
src/BRepGProp/BRepGProp.cxx

index b77c6fb4a8667b65f44c1227b26de592dc5c9022..168fa487744701838a7d30b55f536620f8938b06 100755 (executable)
@@ -55,7 +55,12 @@ void  BRepGProp::LinearProperties(const TopoDS_Shape& S, GProp_GProps& SProps){
 //  Standard_Integer n,i;
   TopExp_Explorer ex;
   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);
     SProps.Add(CG);
   }