View Issue Details

IDProjectCategoryView StatusLast Update
0033341CommunityOCCT:Modeling Algorithmspublic2023-08-01 15:33
Reporterdratner Assigned Toakaftasev  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2015 
Product Version7.6.3 
Target VersionUnscheduled 
Summary0033341: Modeling Algorithms - BRepAlgoAPI_Fuse of torus and cylinder not build
DescriptionGiven a particular orientation of the provided torus and cylinder solid-bodies, an attempted Fuse operation results in error. A non-error result is desired.

It is noted that with OCCT 7.3 we are getting a sold-body result, but one with apparent non-G1 and overlapping edges .
Steps To Reproduce
// Load torus and cylinder solids.
  TopoDS_Shape torusShp;
  BRep_Builder builder;
  BRepTools::Read(torusShp, "torus.brep", builder);

  TopoDS_Shape cylinderShp;
  BRepTools::Read(cylinderShp, "cylinder.brep", builder);

  TopTools_ListOfShape targetShpList;
  targetShpList.Append(torusShp);

  TopTools_ListOfShape toolShpList;
  toolShpList.Append(cylinderShp);

  // Perform boolean.
  BRepAlgoAPI_Fuse bop;
  bop.SetArguments(targetShpList);
  bop.SetTools(toolShpList);
  bop.SetFuzzyValue(tolerance);
  bop.SetNonDestructive(Standard_True);
  bop.SetUseOBB(Standard_True);
  bop.Build();

  if (bop.HasErrors()) {
      Handle(Message_Report) msgReport = bop.GetReport();
      const Message_ListOfAlert &msgList = msgReport->GetAlerts(Message_Info);
  }

  Standard_Boolean success = bop.IsDone();
TagsNo tags attached.
Test case number

Attached Files

  • README_2670.txt (851 bytes)
  • cylinder.brep (1,992 bytes)
  • torus.brep (10,969 bytes)

Activities

dratner

2023-03-07 02:30

reporter  

README_2670.txt (851 bytes)
cylinder.brep (1,992 bytes)
torus.brep (10,969 bytes)

Issue History

Date Modified Username Field Change
2023-03-07 02:30 dratner New Issue
2023-03-07 02:30 dratner Assigned To => oan
2023-03-07 02:30 dratner File Added: README_2670.txt
2023-03-07 02:30 dratner File Added: cylinder.brep
2023-03-07 02:30 dratner File Added: torus.brep
2023-03-07 13:42 dpasukhi Target Version => Unscheduled
2023-03-07 13:42 dpasukhi Steps to Reproduce Updated
2023-03-07 13:46 dpasukhi Summary BRepAlgoAPI_Fuse with Has.Errors and !IsDone() => Modeling Algorithms - BRepAlgoAPI_Fuse of torus and cylinder not build
2023-08-01 15:33 dpasukhi Assigned To oan => akaftasev