Skip to content

Conversation

@dpasukhi
Copy link
Member

  • Changed the way functions are set in GeomFill_ConstrainedFilling to use SetFunc for improved clarity.
  • Corrected parameter usage in GeomFill_CoonsAlgPatch::Value to ensure proper variable assignment for curve evaluation.

…d GeomFill_CoonsAlgPatch

- Changed the way functions are set in GeomFill_ConstrainedFilling to use SetFunc for improved clarity.
- Corrected parameter usage in GeomFill_CoonsAlgPatch::Value to ensure proper variable assignment for curve evaluation.
@dpasukhi
Copy link
Member Author

@dpasukhi dpasukhi self-assigned this Dec 16, 2025
@dpasukhi dpasukhi added the 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... label Dec 16, 2025
@dpasukhi dpasukhi added this to the Release 8.0 milestone Dec 16, 2025
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 addresses two separate issues in the GeomFill module related to parameter handling and function management:

  • Corrects parameter usage in GeomFill_CoonsAlgPatch::Value where the second blending function was incorrectly using parameter V instead of U
  • Refactors function handling in GeomFill_ConstrainedFilling::Init to use SetFunc instead of reassigning and passing the same variables, improving code clarity

Reviewed changes

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

File Description
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CoonsAlgPatch.cxx Fixes parameter assignment bug where a[1]->Value() now correctly uses U instead of V
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_ConstrainedFilling.cxx Refactors to use new variables for transformed functions and calls SetFunc instead of Func for improved clarity

Standard_Real a0, a1, a2, a3;
a0 = a[0]->Value(V);
a1 = a[1]->Value(V);
a1 = a[1]->Value(U);
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

The corrected parameter usage from V to U for a[1]->Value() represents a significant algorithmic change in the Coons patch evaluation. This change should be covered by a test case that verifies the correct blending behavior with different U and V parameters to ensure the patch is properly interpolated.

Copilot uses AI. Check for mistakes.
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Dec 16, 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...

Projects

Status: Integration

Development

Successfully merging this pull request may close these issues.

2 participants