Skip to content

Modeling - General Fuse (BOPAlgo_PaveFiller) optimization#514

Merged
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR502
May 15, 2025
Merged

Modeling - General Fuse (BOPAlgo_PaveFiller) optimization#514
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR502

Conversation

@AtheneNoctuaPt
Copy link
Copy Markdown
Collaborator

@AtheneNoctuaPt AtheneNoctuaPt commented May 8, 2025

Adding a null check for the triangulation in BRep_Tool::IsClosed.
Simplifying index lookup logic in BOPDS_DS.
Introducing helper functions (IsPlaneFF and IsClosedFF) and updating iteration loops in BOPAlgo_PaveFiller_6 for improved clarity and robustness.

@AtheneNoctuaPt AtheneNoctuaPt requested a review from a team May 8, 2025 14:29
@AtheneNoctuaPt AtheneNoctuaPt self-assigned this May 8, 2025
@AtheneNoctuaPt AtheneNoctuaPt added 2. Enhancement New feature or request 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels May 8, 2025
@dpasukhi dpasukhi requested review from a team and Copilot and removed request for a team May 9, 2025 09:56
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 pull request optimizes the general fuse functionality in the BOPAlgo_PaveFiller module by refactoring logic for face-face processing and improving index retrieval in data structures. Key changes include:

  • Adding a null check for the triangulation in BRep_Tool::IsClosed.
  • Simplifying index lookup logic in BOPDS_DS.
  • Introducing helper functions (IsPlaneFF and IsClosedFF) and updating iteration loops in BOPAlgo_PaveFiller_6 for improved clarity and robustness.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/ModelingData/TKBRep/BRep/BRep_Tool.cxx Adds a null check for triangulation in IsClosed.
src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_DS.cxx Refactors index lookup using a streamlined Find call.
src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_PaveFiller_6.cxx Introduces helper functions and updates loops for improved face-edge iteration.
Comments suppressed due to low confidence (1)

src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_PaveFiller_6.cxx:425

  • [nitpick] Consider renaming the loop iterators (for example, 'aItW1' and 'aItE1') to more descriptive names (e.g., 'faceIterator' and 'edgeIterator') to improve code readability.
for (TopoDS_Iterator aItE1(aItW1.Value()); !anIsFound && aItE1.More(); aItE1.Next())

@dpasukhi dpasukhi linked an issue May 9, 2025 that may be closed by this pull request
@dpasukhi dpasukhi changed the title General Fuse (BOPAlgo_PaveFiller) can be optimized. #502 Modeling - General Fuse (BOPAlgo_PaveFiller) optimization May 9, 2025
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance May 15, 2025
@dpasukhi dpasukhi merged commit 7b016e5 into Open-Cascade-SAS:IR May 15, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance May 15, 2025
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request May 19, 2025
…e-SAS#514

Adding a null check for the triangulation in BRep_Tool::IsClosed.
Simplifying index lookup logic in BOPDS_DS.
Introducing helper functions (IsPlaneFF and IsClosedFF) and updating iteration loops in BOPAlgo_PaveFiller_6 for improved clarity and robustness.
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. Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

General Fuse (BOPAlgo_PaveFiller) can be optimized.

3 participants