Skip to content

Modelling - GeomFill_CorrectedFrenet hangs in some cases#630

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR370
Jul 21, 2025
Merged

Modelling - GeomFill_CorrectedFrenet hangs in some cases#630
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR370

Conversation

@AtheneNoctuaPt
Copy link
Copy Markdown
Collaborator

Added check in GeomFill_CorrectedFrenet::InitInterval() to prevent infinite loop. Added GeomFill_CorrectedFrenet test cases and update FILES.cmake.

Added check in GeomFill_CorrectedFrenet::InitInterval() to prevent infinite loop.
Added GeomFill_CorrectedFrenet test cases and update FILES.cmake.
@AtheneNoctuaPt AtheneNoctuaPt requested a review from dpasukhi July 21, 2025 08:13
@AtheneNoctuaPt AtheneNoctuaPt self-assigned this Jul 21, 2025
@AtheneNoctuaPt AtheneNoctuaPt added 2. Bug Something isn't working 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels Jul 21, 2025
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Jul 21, 2025
@dpasukhi dpasukhi added this to the Release 7.9.2 milestone Jul 21, 2025
@dpasukhi dpasukhi requested a review from Copilot July 21, 2025 08:24
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 fixes an infinite loop issue in GeomFill_CorrectedFrenet's InitInterval method by adding a parameter progression check and includes comprehensive test coverage for the fix.

  • Added parameter progression check to prevent infinite loops when step size becomes too small
  • Improved code formatting and variable naming for better maintainability
  • Added comprehensive test suite covering the infinite loop scenario and edge cases

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
GeomFill_CorrectedFrenet.cxx Fixed infinite loop bug by adding parameter progression check and improved code formatting
GeomFill_CorrectedFrenet_Test.cxx Added comprehensive test cases covering the infinite loop fix and various edge cases
FILES.cmake Added new test file to build configuration
Comments suppressed due to low confidence (1)

src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CorrectedFrenet.cxx:629

  • [nitpick] Variable name 'aParamIndex' is inconsistent with the existing codebase style. Consider using a shorter, more conventional loop variable name like 'i' or 'idx' to match the project's naming conventions.
    for (Standard_Integer aParamIndex = 1; aParamIndex <= Length; ++aParamIndex)

@dpasukhi dpasukhi linked an issue Jul 21, 2025 that may be closed by this pull request
@dpasukhi dpasukhi merged commit 3c2774e into Open-Cascade-SAS:IR Jul 21, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Jul 21, 2025
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
- Added parameter progression check to prevent infinite loops when step size becomes too small
- Improved code formatting and variable naming for better maintainability
- Added comprehensive test suite covering the infinite loop scenario and edge cases
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
- Added parameter progression check to prevent infinite loops when step size becomes too small
- Improved code formatting and variable naming for better maintainability
- Added comprehensive test suite covering the infinite loop scenario and edge cases
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.

GeomFill_CorrectedFrenet hangs in some cases

3 participants