mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
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.
This commit is contained in:
parent
76a91b4982
commit
e6ce7ba75a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user