[new feature] Sketcher basic BSpline support

Info about new implemented features, classes, modules or APIs. Might get technical!
hinckel
Posts: 21
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: [new feature] Sketcher basic BSpline support

Postby hinckel » Sat Jan 21, 2017 10:18 pm

Yes!! Thanks
triplus
Posts: 4993
Joined: Mon Dec 12, 2011 4:45 pm

Re: [new feature] Sketcher basic BSpline support

Postby triplus » Sun Jan 22, 2017 2:49 pm

hinckel wrote:Yes!! Thanks


You're welcome and note that this behaviour will likely change soon:

https://forum.freecadweb.org/viewtopic. ... 30#p154999
hinckel
Posts: 21
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: [new feature] Sketcher basic BSpline support

Postby hinckel » Sun Jan 22, 2017 6:24 pm

I'm all eyes and ears.
Since we are at it. Unlike the illustrations shown in this thread, I cannot change equality constrains on the weight radii. A delete operation on these constraints crashes the applications.
Adelante! cheers!
abdullah
Posts: 1610
Joined: Sun May 04, 2014 3:16 pm

Re: [new feature] Sketcher basic BSpline support

Postby abdullah » Tue Jan 24, 2017 12:23 pm

hinckel wrote:I'm all eyes and ears.
Since we are at it. Unlike the illustrations shown in this thread, I cannot change equality constrains on the weight radii. A delete operation on these constraints crashes the applications.
Adelante! cheers!


I noticed some weird behaviour after a DAG commit that then was reverted by Werner. Install the latest daily and if you can make it crash, then post here, or in the developer's corner (in the Bezier's thread), detailed instructions about how to make it crash.

I am currently fully rewriting the BSpline creation method. It is almost there. Each time it is clicked a pole controlling circle is created. Creation is cancelled with right-click (double-click closing method is removed). If last circle is made coincident (autoconstraints) with the first circle, then the curve is closed. After right-clicking (open bspline) or coincident closing (closed bspline), the bspline is constructed, assigning the circles as Internal Geometry.

It is a totally different way of making geometry (compared to the other tools), but it takes user feedback into account and I would say it is reasonably well suited.

Currently I am accelerating the process (reducing the number of calls of the solvers when assigning the circles to InternalAlignment constraints). More soon.