]> OCCT Git - occt-copy.git/commitdiff
Draw function nexplode was replaced by explode in test case
authorabk <abk@opencascade.com>
Thu, 10 Jan 2013 09:23:21 +0000 (13:23 +0400)
committerabk <abk@opencascade.com>
Wed, 6 Mar 2013 10:56:53 +0000 (14:56 +0400)
blend/complex/D4.
Calculation of gravity center was removed for degenerated edge.
It is revealed that function nexplode does not work on shapes with
degenerated edges.

Comments.
Calculation of gravity center was made by vertices data in case of
degenerated edge without representations especially for test case
blend/complex/D4. The mass of the edge was set to 1. The mass near 0 does
not satisfy the test case. As a result test case bugs/moddata/bug268
became failed. Because only the mass near 0 satisfies last test case.

src/BRepGProp/BRepGProp.cxx
tests/blend/complex/D4

index f6700f9e028f3c5b1b7c82fc893ae75dadea1055..a2be7274384d938407aec0c047a864619aad10f4 100755 (executable)
@@ -68,20 +68,6 @@ 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);
-    }
   }
 }
 
index 238ff3fa5020c3697c9c1f656e378283aaab68c6..76a2831fb933d818988b563d0669f9a1d80a4a88 100644 (file)
@@ -5,7 +5,7 @@
 ## ====================================
 
 restore [locate_data_file CFI_cfi90fjc.rle] a
-nexplode a e
-blend result a 5 a_5 5 a_13 5 a_28
+explode a e
+blend result a 5 a_42 5 a_44 5 a_46
 
 set square 66620.1