SOLVESPACE -- parametric 2d/3d CAD

(you are viewing a thread; or go back to list of threads)

Could we create an inequality with Expr? (by starsasumi)

I am trying to add some inequality constraint to SLVS, but I failed to describe such a constraint with Expr. Is there any solution for this?

Thanks a lot.

Wed Mar 30 2016, 11:42:46
(no subject) (by Jonathan Westhues)
In brief, there might be ways to hack inequalities into the solver, but it was never made for that. Some earlier threads at:
Wed Mar 30 2016, 16:28:56
(no subject) (by starsasumi)
Thanks for your replay and the related thread. In fact, my goal here is to add ellipse and arc of ellipse entities to SLVS. (I've read the tutorial about drawing an ellipse in SolveSpace, but since I use only SLVS, it could not fit my purpose).

An ellipse is described as two focal points (point[0], point[1]) and one distance entity (for the sum of the distances to the two focal points for a point on ellipse). In this model, the solver needs to keep the distance of two focal points greater than the value of its distance entity.

From the second thread link, I noticed that EvilSpirit mentioned Rvachev function ( which could fits my need. But again, I fail to find anything related from the codes.

Could you please tell me more about that? Or any workaround that you think of.

Sorry to bother you again and thanks for your time.

BTW, if you are also interested with the ellipse, I can make an pull request on Github :) (and we could discuss there too)
Thu Mar 31 2016, 04:07:56
Ellipse (by EvilSpirit)
I can provide more info for you, just contact me (anandamide at mail dot ru)
Mon Apr 4 2016, 01:22:46
Post a reply to this comment:
Your Name:
Your Email:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2018 SolveSpace contributors. Most recent update Nov 22 2018.