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

Objects flip to the opposite side of constraints #440

Closed
ad8e opened this issue Jun 12, 2019 · 2 comments
Closed

Objects flip to the opposite side of constraints #440

ad8e opened this issue Jun 12, 2019 · 2 comments
Labels

Comments

@ad8e
Copy link

ad8e commented Jun 12, 2019

System information

SolveSpace version: 3.0~5df53fc5
Operating system: Ubuntu 19.04 in VMWare

Expected behavior

When I drag points quickly or set constraints that move points a moderate distance, sometimes objects tunnel through their constraints to a different local solution (for example, if a point-line distance is specified, the point will flip to the opposite side of the line). My hope is that this occurrence is reduced in frequency.

Additional information

If the numerical solver reuses previous state and flows along a gradient to the new state, maybe smaller steps would help. Alternatively, if a point is moved a large distance, a line can be drawn between the two positions and then the solution incrementally iterated along this line. This creates a smooth path between the start and end position, preventing discontinuous jumps.

#76 is related and the preferred solution. Mine is just a bandaid.

@ad8e ad8e changed the title Objects flip to the opposite side constraints Objects flip to the opposite side of constraints Jun 12, 2019
@whitequark
Copy link
Contributor

I don't think a band-aid that makes dragging significantly slower (and it's already not very fast) is desirable.

@Evil-Spirit
Copy link
Collaborator

https://github.com/NoteCAD/NoteCAD already uses chirality-preserving equations where it is possible, so anyone can look into.

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

No branches or pull requests

3 participants