Skip to content

Modeling - BRepFilletAPI_MakeFillet::Add hangs on adding edge#859

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR847
Nov 27, 2025
Merged

Modeling - BRepFilletAPI_MakeFillet::Add hangs on adding edge#859
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR847

Conversation

@AtheneNoctuaPt
Copy link
Collaborator

ChFi3d_Builder_1: Face reordering logic is updated to process correctly face vertices that are connected to more then 2 face edges.

ChFi3d_Builder_1: Face reordering logic is updated to process correctly face vertices that are connected to more then 2 face edges.
@AtheneNoctuaPt AtheneNoctuaPt self-assigned this Nov 27, 2025
@AtheneNoctuaPt AtheneNoctuaPt added 2. Bug Something isn't working 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels Nov 27, 2025
@dpasukhi dpasukhi requested a review from Copilot November 27, 2025 10:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a hang in BRepFilletAPI_MakeFillet::Add when adding edges. The root cause is in the face reordering logic of ChFi3d_Builder_1, which previously assumed face vertices connect to exactly 2 edges. The fix updates the logic to handle vertices connected to more than 2 face edges.

Key changes:

  • Refactored the ReorderFaces function to iterate through all edges at a vertex instead of assuming only two edges exist
  • Replaced manual face swapping with std::swap for cleaner code
  • Removed debug output statements and unused debug declarations

@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Nov 27, 2025
@dpasukhi dpasukhi changed the title BRepFilletAPI_MakeFillet::Add hangs on adding edge Modeling - BRepFilletAPI_MakeFillet::Add hangs on adding edge Nov 27, 2025
@dpasukhi dpasukhi added this to the Release 7.9.3 milestone Nov 27, 2025
@dpasukhi dpasukhi merged commit 5f40d89 into Open-Cascade-SAS:IR Nov 27, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Nov 27, 2025
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request Dec 5, 2025
…ascade-SAS#859)

- Refactored the `ReorderFaces` function to iterate through all edges at a vertex instead of assuming only two edges exist
- Replaced manual face swapping with `std::swap` for cleaner code
- Removed debug output statements and unused debug declarations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

BRepFilletAPI_MakeFillet::Add hangs on adding edge, reproducible in DRAWEXE

3 participants