Skip to content

Modelling - Crash in BRepFilletAPI_MakeChamfer#743

Merged
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR33743
Oct 16, 2025
Merged

Modelling - Crash in BRepFilletAPI_MakeChamfer#743
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR33743

Conversation

@AtheneNoctuaPt
Copy link
Copy Markdown
Collaborator

Handle a case where a newly created face does not contain a required edge.
A minor refactoring of ChFi3d_Builder_2.cxx is performed.

Handle a case where a newly created face does not contain a required
edge.
A minor refactoring of ChFi3d_Builder_2.cxx is performed.
@AtheneNoctuaPt AtheneNoctuaPt self-assigned this Oct 13, 2025
@AtheneNoctuaPt AtheneNoctuaPt added 2. Bug Something isn't working 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels Oct 13, 2025
@dpasukhi dpasukhi requested a review from Copilot October 13, 2025 15:13
Copy link
Copy Markdown

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 addresses a crash in BRepFilletAPI_MakeChamfer by handling cases where newly created faces don't contain required edges. The fix includes defensive programming to check for null edge handles and graceful fallback to default behavior when edge lookup fails.

  • Refactored helper functions with clearer naming and improved parameter handling
  • Added null safety checks to prevent crashes when edge lookup fails in face topology
  • Removed debug code and simplified variable declarations for better maintainability

@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Oct 16, 2025
@dpasukhi dpasukhi merged commit d54a7e0 into Open-Cascade-SAS:IR Oct 16, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Oct 16, 2025
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request Dec 5, 2025
- Refactored helper functions with clearer naming and improved parameter handling
- Added null safety checks to prevent crashes when edge lookup fails in face topology
- Removed debug code and simplified variable declarations for better maintainability
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.

3 participants