From e6ce7ba75aaa8aaf3b707d6e8fa78d51505bba09 Mon Sep 17 00:00:00 2001 From: abk Date: Thu, 10 Jan 2013 13:23:21 +0400 Subject: [PATCH] Draw function nexplode was replaced by explode in test case 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 | 14 -------------- tests/blend/complex/D4 | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/BRepGProp/BRepGProp.cxx b/src/BRepGProp/BRepGProp.cxx index f6700f9e02..a2be727438 100755 --- a/src/BRepGProp/BRepGProp.cxx +++ b/src/BRepGProp/BRepGProp.cxx @@ -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); - } } } diff --git a/tests/blend/complex/D4 b/tests/blend/complex/D4 index 238ff3fa50..76a2831fb9 100644 --- a/tests/blend/complex/D4 +++ b/tests/blend/complex/D4 @@ -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