View Issue Details

IDProjectCategoryView StatusLast Update
0033908CommunityOCCT:Modeling Algorithmspublic2026-01-07 15:04
Reporterj.bourgoin Assigned Toj.bourgoin  
PrioritynormalSeveritymajor 
Status feedbackResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.7.1 
Summary0033908: Bad result with BRepAlgoAPI_Cut
DescriptionHello,

I try to use BRepAlgoAPI_Cut between 2 shapes. I should have a shape as result but I get an empty TopoDS_Shape.
Steps To Reproduce    BRepAlgoAPI_Cut lBuilder ;
    BRep_Builder lBRepBuilder ;
    TopTools_ListOfShape lArgs ;
    TopoDS_Shape lArg, lTool ;
    BRepTools::Read(lArg, "lPositiveGeom.brep", lBRepBuilder) ;
    BRepTools::Read(lTool, "lNegativeGeom.brep", lBRepBuilder) ;
    lArgs.Append(lArg) ;
    lBuilder.SetArguments(lArgs) ;
    TopTools_ListOfShape lTools ;
    lTools.Append(lTool) ;
    lBuilder.SetTools(lTools) ;
    lBuilder.SetFuzzyValue(1e-6) ;
    lBuilder.Build() ;

    if (lBuilder.IsDone() && !lBuilder.HasErrors())
    {
        pResultShape = lBuilder.Shape() ;
        BRepTools::Write(pResultShape, "pResultShape.brep") ;
    }
TagsNo tags attached.
Test case number

Attached Files

Relationships

related to 0033900 feedbackj.bourgoin Bad STEP import 

Activities

j.bourgoin

2025-09-11 18:29

reporter  

pResultShape.brep (188 bytes)   
lNegativeGeom.brep (9,959 bytes)   
lPositiveGeom.brep (1,313 bytes)   

ika

2025-11-19 16:05

reporter   ~0117098

The lNegativeGeom.brep consists of two parts: "plane" and "cube". In case of an attempt to cut from the lPositiveGeom.brep disk only cube, it will return the valid result, so the problem is in the "plane". According to the topology naming this plane is a solid, so it should be a very thin parallelepiped, but in fact it is a plane. It has only 6 plane faces: top, bottom, and 4 outside walls. While it should have 4 more inside walls to be a parallelepiped with a hole. This invalidity made the given shape flat (during any shape healing or from the beginning, I don't know). So cutting a plane from the real solid with volume led to an empty shape as a result.

Issue History

Date Modified Username Field Change
2025-09-11 18:29 j.bourgoin New Issue
2025-09-11 18:29 j.bourgoin Assigned To => akaftasev
2025-09-11 18:29 j.bourgoin File Added: pResultShape.brep
2025-09-11 18:29 j.bourgoin File Added: lNegativeGeom.brep
2025-09-11 18:29 j.bourgoin File Added: lPositiveGeom.brep
2025-10-23 11:26 dpasukhi Relationship added related to 0033900
2025-11-19 16:05 ika Note Added: 0117098
2026-01-07 14:26 dpasukhi Note View State: 0117098: public
2026-01-07 15:04 dpasukhi Assigned To akaftasev => j.bourgoin
2026-01-07 15:04 dpasukhi Status new => feedback