Archived issue #0033905
BRepAlgoAPI_Common gives bad result
Description
Hello,
The whole Attachment 1 (BREP) (see attached files) is considered as common part between Attachment 1 (BREP) and Attachment 7 (BREP) but that's clearly wrong (see attached picture)
The whole Attachment 1 (BREP) (see attached files) is considered as common part between Attachment 1 (BREP) and Attachment 7 (BREP) but that's clearly wrong (see attached picture)
Steps to reproduce
BRepAlgoAPI_Common lBuilder ;
lBuilder.SetRunParallel(false) ;
TopTools_ListOfShape lArgs ;
TopTools_ListOfShape lTools ;
TopoDS_Shape arg, tool ;
BRep_Builder builder ;
BRepTools::Read(arg, "Attachment 1 (BREP)", builder) ;
lArgs.Append(arg) ;
lBuilder.SetArguments(lArgs) ;
BRepTools::Read(tool, "Attachment 7 (BREP)", builder) ;
lTools.Append(tool) ;
lBuilder.SetTools(lTools) ;
pFuzzyValue = 1.0e-6 ;
lBuilder.SetFuzzyValue(pFuzzyValue) ;
// Proceed !
lBuilder.Build() ;
if (lBuilder.IsDone())
{
// No errors ?
if (!lBuilder.HasErrors())
{
// Extract shape
lShape = lBuilder.Shape() ;
BRepTools::Write(lShape, "Attachment 2 (BREP)") ;
}
}
lBuilder.SetRunParallel(false) ;
TopTools_ListOfShape lArgs ;
TopTools_ListOfShape lTools ;
TopoDS_Shape arg, tool ;
BRep_Builder builder ;
BRepTools::Read(arg, "Attachment 1 (BREP)", builder) ;
lArgs.Append(arg) ;
lBuilder.SetArguments(lArgs) ;
BRepTools::Read(tool, "Attachment 7 (BREP)", builder) ;
lTools.Append(tool) ;
lBuilder.SetTools(lTools) ;
pFuzzyValue = 1.0e-6 ;
lBuilder.SetFuzzyValue(pFuzzyValue) ;
// Proceed !
lBuilder.Build() ;
if (lBuilder.IsDone())
{
// No errors ?
if (!lBuilder.HasErrors())
{
// Extract shape
lShape = lBuilder.Shape() ;
BRepTools::Write(lShape, "Attachment 2 (BREP)") ;
}
}
Public activity
2 archived notes
Participants are labeled by their role within this record.
See attached files for example
Attachment 7 (BREP) (4,850 bytes)
Attachment 1 (BREP) (4,153 bytes)
Attachment 2 (BREP) (7,317 bytes)
Attachment 3 (PNG) (60,325 bytes)
Merged into [archived branch], repository: archived repository reference
[revision removed]
Branch: archived repository reference
[revision removed]
Branch: archived repository reference