View Issue Details

IDProjectCategoryView StatusLast Update
0033561CommunityOCCT:Modeling Algorithmspublic2024-05-16 13:28
Reporternerooren_158894 Assigned To 
PrioritynormalSeverityblock 
Status newResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.8.0 
Summary0033561: BRepAlgoAPI_Defeaturing never finishes
DescriptionWhen use BRepAlgoAPI_Defeaturing to remove a small face (created by BRepFilletAPI_MakeFillet) (the brep file is attahced), the BRepAlgoAPI_Defeaturing never finishes, it loops in IntTools_BeanFaceIntersector::ComputeLocalized with huge amount of surface ranges (20355, 40000+, ...), tested with 7.6.1, 7.7.0, 7.8.0
Steps To ReproduceRun below test code with attached brep file:

void test()
{
    BRep_Builder bb;
    TopoDS_Shape targetEntityShape;
    const char* brepFile = "D:/tmp/anc101_def.brep";

    if (!BRepTools::Read(targetEntityShape, brepFile, bb)) {
        return;
    }

    bool isValid = BRepCheck_Analyzer(targetEntityShape).IsValid();
    if (!isValid) {
        return;
    }

    TopoDS_Face face;
    int i = 0;
    for (TopExp_Explorer faceExplorer(targetEntityShape, TopAbs_FACE); faceExplorer.More(); faceExplorer.Next()) {
        if (i == 1) {
            face = TopoDS::Face(faceExplorer.Current());
            break;
        }
        i++;
    }

    TopTools_ListOfShape faceShapes;
    faceShapes.Append(face);

    BRepAlgoAPI_Defeaturing aDefeaturing;

    aDefeaturing.SetShape(targetEntityShape);
    aDefeaturing.AddFacesToRemove(faceShapes);
    aDefeaturing.SetRunParallel(false);
    aDefeaturing.SetToFillHistory(true);
    // Perform.
    aDefeaturing.Build();

    if (!aDefeaturing.IsDone() || aDefeaturing.HasWarnings()) {
        return;
    }

    TopoDS_Shape result = aDefeaturing.Shape();
    return;
}
Additional information
and documentation updates
the test file is attached along with a screen shot to indicate the small face to be removed
TagsNo tags attached.
Test case number

Attached Files

  • anc101_def.brep (130,482 bytes)
  • Snipaste_2023-12-08_13-50-10.jpg (271,772 bytes)

Activities

nerooren_158894

2023-12-26 04:22

reporter   ~0114841

test files.
anc101_def.brep (130,482 bytes)
Snipaste_2023-12-08_13-50-10.jpg (271,772 bytes)

Issue History

Date Modified Username Field Change
2023-12-26 04:20 nerooren_158894 New Issue
2023-12-26 04:20 nerooren_158894 Assigned To => oan
2023-12-26 04:22 nerooren_158894 Note Added: 0114841
2023-12-26 04:22 nerooren_158894 File Added: anc101_def.brep
2023-12-26 04:22 nerooren_158894 File Added: Snipaste_2023-12-08_13-50-10.jpg
2024-05-16 13:28 oan Assigned To oan =>