DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0033892

BRepAlgoAPI_Common doesn't work well in a specific case

CommunityOCCT:Modeling Algorithmsnew2 public notes

Search issues

Description

Hi,

I use BRepAlgoAPI_Common to get the intersection between 2 shapes and the result is an empty shape, but it shouldn't.

I give you the example below.

Tried with v7.9.1

Steps to reproduce

BRepAlgoAPI_Common lBuilder ;
        lBuilder.SetRunParallel(false) ;
        TopTools_ListOfShape lArgs ;
        TopTools_ListOfShape lTools ;
        lArgs.Append(lShape) ; // File Attachment 2 (BREP)
        lBuilder.SetArguments(lArgs) ;
        lTools.Append(lTool) ; // File Attachment 3 (BREP)
        lBuilder.SetTools(lTools) ;

        if (pFuzzyValue > 0.0)
        {
            lBuilder.SetFuzzyValue(pFuzzyValue) ;
        }

        lBuilder.Build() ;

        if (lBuilder.IsDone())
        {
            if (!lBuilder.HasErrors())
            {
                lShape = lBuilder.Shape() ; // File Attachment 1 (BREP)
            }
        }

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Hello Commenter 3,
Seems like you did not attach the shapes.
02Author
Attachment 1 (BREP) (188 bytes)   
Attachment 2 (BREP) (1,822,227 bytes)   
Attachment 3 (BREP) (164,626 bytes)