TopoDS_Shape aShapeBase = theBaseSolid->impl<TopoDS_Shape>();
TopTools_IndexedDataMapOfShapeListOfShape M;
TopExp::MapShapesAndAncestors(aShapeBase, TopAbs_EDGE, TopAbs_FACE, M);
-
+
// create chamfer builder
BRepFilletAPI_MakeChamfer* aChamferBuilder =
new BRepFilletAPI_MakeChamfer(aShapeBase);
setImpl(aChamferBuilder);
setBuilderType(OCCT_BRepBuilderAPI_MakeShape);
-
+
for (ListOfShape::const_iterator anIt = theChamferShapes.begin();
anIt != theChamferShapes.end(); ++anIt) {
if ((*anIt)->isEdge()) {
if (aMapEdgeFace.find(*anIt) != aMapEdgeFace.end()) {
//TopoDS_Face F = (aMapEdgeFace[*anIt])->impl<TopoDS_Face>();
TopoDS_Face F = (aMapEdgeFace.at(*anIt))->impl<TopoDS_Face>();
- if (!BRepTools::IsReallyClosed(E,F) && !BRep_Tool::Degenerated(E) &&
+ if (!BRepTools::IsReallyClosed(E,F) && !BRep_Tool::Degenerated(E) &&
M.FindFromKey(E).Extent() == 2) {
if (performDistances) {
aChamferBuilder->Add(aVal1, aVal2, E, F);