Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketcher: fix CircleToCircle distance constraint with external #9822

Merged
merged 1 commit into from Jul 1, 2023

Conversation

FlachyJoe
Copy link
Contributor

Create c2c distance constraint with one external geometry raised a malformed constraint error
https://forum.freecad.org/viewtopic.php?p=688538#p688538

The precommit hook also clang-formats some lines…

Thank you for creating a pull request to contribute to FreeCAD! Place an "X" in between the brackets below to "check off" to confirm that you have satisfied the requirement, or ask for help in the FreeCAD forum if there is something you don't understand.

  • Your Pull Request meets the requirements outlined in section 5 of CONTRIBUTING.md for a Valid PR

Please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 1.0 Changelog Forum Thread.


Create c2c distance constraint with one external geometry raised a
malformed constraint error

+ clang format catch by precommit hook
@github-actions github-actions bot added the WB Sketcher Related to the Sketcher Workbench label Jun 25, 2023
@FEA-eng
Copy link
Contributor

FEA-eng commented Jun 26, 2023

@luzpaz Can this be marked to be merged for 0.21?

@luzpaz
Copy link
Contributor

luzpaz commented Jun 26, 2023

@abdullahtahiriyo if you're available, do you mind reviewing?

@FlachyJoe
Copy link
Contributor Author

@luzpaz I think @0penBrain is competent to review and maybe more available than adbullah.

The fix resides in 2 lines already used in the point to point distance constraint just above. And checkGeoId() comment says convert negative external-geometry index to index into Geoms.

@0penBrain 0penBrain merged commit 1de0e96 into FreeCAD:master Jul 1, 2023
7 checks passed
@FlachyJoe
Copy link
Contributor Author

Thank you @0penBrain

@FlachyJoe FlachyJoe deleted the fix_c2c_external branch September 18, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WB Sketcher Related to the Sketcher Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants