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.
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);
- }
}
}
## ====================================
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