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

Improve auto-creating constraints #67

Open
hlorus opened this issue Apr 28, 2022 · 5 comments
Open

Improve auto-creating constraints #67

hlorus opened this issue Apr 28, 2022 · 5 comments
Labels
Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board
Milestone

Comments

@hlorus
Copy link
Owner

hlorus commented Apr 28, 2022

Tools that automatically add constraints should check if the system still solves. If there's an error the constraints shouldn't be added.

Additionally it would be great to have the option to turn off automatic constraining with a global toggle and ideally also a modifier key.

@hlorus hlorus added this to the 1.0 Release milestone Apr 28, 2022
@hlorus hlorus moved this to Todo in CAD Sketcher Project Apr 28, 2022
@hlorus hlorus changed the title Avoid auto-creating constraints when solver fails Improve auto-creating constraints May 4, 2023
@bonjorno7
Copy link
Contributor

Do you have a list of tools which automatically add constraints?
So far it seems all active tools (toolbar on the left) can do it under the right circumstances, except Offset Entities.

@hlorus
Copy link
Owner Author

hlorus commented Nov 13, 2023

Probably these:

add_point_3d
add_point_2d
add_line_3d
add_line_2d
add_arc
add_rectangle

bevel
trim

@hlorus
Copy link
Owner Author

hlorus commented Nov 13, 2023

Maybe we could use a context manager for this, then adding constraints would look something like this:

with safe_constraining() as constraints:
constraints.add_coincident()
....

@bonjorno7
Copy link
Contributor

Good idea.

@bonjorno7
Copy link
Contributor

I've made a start here: #425

@hlorus hlorus added the Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board
Projects
Development

No branches or pull requests

2 participants