- {
- TopoDS_Face F = TopoDS::Face(aFace1);
-
- // fill map of edges of the second face
- TopTools_MapOfShape aMap;
- TopExp_Explorer Exp2 (aFace2, TopAbs_EDGE);
- for (; Exp2.More(); Exp2.Next()) {
- aMap.Add(Exp2.Current());
- }
-
- // find edges of the first face, common with the second face
- TopExp_Explorer Exp (aFace1, TopAbs_EDGE);
- for (; Exp.More(); Exp.Next()) {
- if (aMap.Contains(Exp.Current())) {
- TopoDS_Edge E = TopoDS::Edge(Exp.Current());
- if (!BRepTools::IsReallyClosed(E, F) && !BRep_Tool::Degenerated(E))
- {
- if ( aType == CHAMFER_SHAPE_EDGE )
- {
- double aD1 = aCI.GetD1();
- double aD2 = aCI.GetD2();
- fill.Add(aD1, aD2, E, F);
- }
- else
- {
- double aD = aCI.GetD();
- double anAngle = aCI.GetAngle();
- if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
- fill.AddDA(aD, anAngle, E, F);
- }
- }
- }
- }
+ {
+ TopoDS_Face F = TopoDS::Face(aFace1);
+
+ // fill map of edges of the second face
+ TopTools_MapOfShape aMap;
+ TopExp_Explorer Exp2 (aFace2, TopAbs_EDGE);
+ for (; Exp2.More(); Exp2.Next()) {
+ aMap.Add(Exp2.Current());