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

setting invalid values in the cylindrical constraint limits causes all the limits to silently fail #61

Closed
2 tasks done
kevenwyld opened this issue May 28, 2024 · 3 comments · Fixed by FreeCAD/FreeCAD#14383
Assignees

Comments

@kevenwyld
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

When attempting to set limits for the cylindrical constraint only certain values for min and max seem to be valid. Negative values for min, positive values for max, etc. When setting a value that is invalid, for example a positive min, all the limits silently break. There doesn't seem to be any error output visible to the user in the console or report view, the object is just allowed to move past all the limits when any one of the values is invalid.

Thanks!

Full version info

OS: Arch Linux (sway/sway)
Word size of Ondsel: 64-bit
Version: 2024.2.0.37191 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 2024.2.0)
Hash: 2ad5fb327d068ae6280cf702d528b3a6e35770a7
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US)
Installed mods: 
  * Ondsel-Lens 2024.5.6.01

Subproject(s) affected?

Assembly

Anything else?

Video_2024-05-28_17-42-25.mp4

Code of Conduct

  • I agree to follow this project's Code of Conduct
@PaddleStroke
Copy link

Thanks for the report.
Note that limits have merged into freecad main. So it is best to post the issue there, so that more people can see it.

Onto the problem itself: We could add a check on joint creation to check if the limits are valid and prevent validation if they are not.

@PaddleStroke
Copy link

The alternate solution is to fix automatically if the limits are invalid. So if min is less than max we just swap them when solving.
This way we avoid the blocking error message.

@kevenwyld
Copy link
Author

Thanks @PaddleStroke! I'll try to test the PR you linked if I can manage to build it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants