Skip to content

Modeling, BSplineCache - Improve parameter validation logic#829

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:bspline_cache_bug_kgv
Nov 17, 2025
Merged

Modeling, BSplineCache - Improve parameter validation logic#829
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:bspline_cache_bug_kgv

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

  • Enhanced the parameter validation logic in BSplCLib_CacheParams to ensure correct handling of edge cases.
  • Added checks for floating point precision when determining if the next knot should be used.
  • Improved code readability by restructuring the return conditions.

@dpasukhi dpasukhi added this to the Release 7.9.3 milestone Nov 13, 2025
@dpasukhi dpasukhi requested a review from Copilot November 13, 2025 19:03
@dpasukhi dpasukhi self-assigned this Nov 13, 2025
@dpasukhi dpasukhi added 2. Enhancement New feature or request 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels Nov 13, 2025
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

The PR enhances parameter validation logic in BSplCLib_CacheParams to improve handling of edge cases in B-spline curve parameter validation. The changes focus on adding floating-point precision checks when determining whether a parameter falls within the current span or should use the next knot.

Key Changes:

  • Restructured the return logic from a single compound boolean expression into multiple explicit conditional checks
  • Added floating-point precision validation to detect when a parameter is effectively at the next knot boundary
  • Improved code readability by separating edge case handling from the main validation logic

@dpasukhi dpasukhi changed the title Modeling, BSplineCache - Improve parameter validation logic #829 Modeling, BSplineCache - Improve parameter validation logic Nov 13, 2025
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request Nov 17, 2025
…ade-SAS#829

- Enhanced the parameter validation logic in BSplCLib_CacheParams to ensure correct handling of edge cases.
- Added checks for floating point precision when determining if the next knot should be used.
- Improved code readability by restructuring the return conditions.
@dpasukhi dpasukhi force-pushed the bspline_cache_bug_kgv branch from 4b6e64b to dd90c4f Compare November 17, 2025 09:58
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request Nov 17, 2025
…ade-SAS#829

- Enhanced the parameter validation logic in BSplCLib_CacheParams to ensure correct handling of edge cases.
- Added checks for floating point precision when determining if the next knot should be used.
- Improved code readability by restructuring the return conditions.
@dpasukhi dpasukhi force-pushed the bspline_cache_bug_kgv branch from dd90c4f to c7b9234 Compare November 17, 2025 10:36
…ade-SAS#829

- Enhanced the parameter validation logic in BSplCLib_CacheParams to ensure correct handling of edge cases.
- Added checks for floating point precision when determining if the next knot should be used.
- Improved code readability by restructuring the return conditions.
@dpasukhi dpasukhi force-pushed the bspline_cache_bug_kgv branch from c7b9234 to 1a246af Compare November 17, 2025 11:14
@dpasukhi dpasukhi merged commit 1a246af into Open-Cascade-SAS:IR Nov 17, 2025
23 checks passed
@dpasukhi dpasukhi deleted the bspline_cache_bug_kgv branch November 17, 2025 12:27
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Nov 17, 2025
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.

3 participants