View Issue Details

IDProjectCategoryView StatusLast Update
0033899CommunityOCCT:Modeling Algorithmspublic2025-08-11 18:56
Reporterj.bourgoin Assigned Toakaftasev  
PrioritynormalSeveritymajor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.7.1 
Summary0033899: Overlap found/not found depending on translation value
DescriptionFrom 2 TopoDS_Shape, I perform a BRepAlgoAPI_Common operation and the result shape is empty.
I set an identical translation in Y for the 2 shapes, I do it again and now I have a common shape. I should not.
Steps To Reproduce        BRepAlgoAPI_Common lBuilder ;
        lBuilder.SetRunParallel(false) ;
        TopTools_ListOfShape lArgs ;
        TopTools_ListOfShape lTools ;
        TopoDS_Shape arg, tool ;
        BRep_Builder builder ;
        
        gp_Trsf translationArg ;

                // Y = 0 or 100, no overlap, Y = 200, overlap
        translationArg.SetTranslation(gp_Vec(70.0, 200.0, 0.0)) ;

        BRepTools::Read(arg, "C:\\arg.brep", builder) ;
        arg = BRepBuilderAPI_Transform(arg, translationArg, true).Shape() ;

        lArgs.Append(arg) ;
        lBuilder.SetArguments(lArgs) ;

        gp_Trsf translationTool ;

                // Y = 0 or 100, no overlap, Y = 200, overlap
        translationTool.SetTranslation(gp_Vec(70.0000012207, 200.0, 7.7359410331)) ;
        
        BRepTools::Read(tool, "C:\\tool.brep", builder) ;
        tool = BRepBuilderAPI_Transform(tool, translationTool, true).Shape() ;

        lTools.Append(tool) ;
        lBuilder.SetTools(lTools) ;

        lBuilder.SetFuzzyValue(1.0e-6) ;

        // Proceed !
        lBuilder.Build() ;

        // Can we work ?
        if (lBuilder.IsDone())
        {
            // No errors ?
            if (!lBuilder.HasErrors())
            {
                // Extract shape
                lShape = lBuilder.Shape() ;
            }
        }
TagsNo tags attached.
Test case number

Attached Files

Activities

j.bourgoin

2025-08-11 18:56

reporter  

tool.brep (4,160 bytes)   
arg.brep (5,079 bytes)   

Issue History

Date Modified Username Field Change
2025-08-11 18:56 j.bourgoin New Issue
2025-08-11 18:56 j.bourgoin Assigned To => akaftasev
2025-08-11 18:56 j.bourgoin File Added: tool.brep
2025-08-11 18:56 j.bourgoin File Added: arg.brep