Sketcher: Bezier curves

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Sketcher: Bezier curves

Post by triplus »

I can test for the mentioned crash but i likely won't be able to do that before the weekend.
jean.thil
Posts: 209
Joined: Tue Jul 28, 2015 7:28 am

Re: Sketcher: Bezier curves

Post by jean.thil »

See below the result I got if I try point on curve constraint.
cannot_constrain.png
cannot_constrain.png (51.3 KiB) Viewed 1657 times
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Sketcher: Bezier curves

Post by jmaustpc »

jean.thil wrote:See below the result I got if I try point on curve constraint.
cannot_constrain.png
It means that the code has not been written yet.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Sketcher: Bezier curves

Post by NormandC »

Just did a quick test of the newly merged stuff and wanted to say that it's freaking awesome.

The curvature comb updating dynamically has an hypnotic quality. You just don't want to stop moving the control points. :D

I can't thank you enough for the work you're doing Abdullah! :)
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher: Bezier curves

Post by abdullah »

jmaustpc wrote: jean.thil wrote:
See below the result I got if I try point on curve constraint.
cannot_constrain.png



It means that the code has not been written yet.
You can put an edge on a bpsline point. That is supported.

You can not put a point on a bspline edge. That is currently unsupported. It is Stage2 functionality. We are at stage1b_third_deliverable now.

The stages basically mean:
1) Stage 1b: Get the maximum functionality from the current solver infraestructure.
2) Stage 2: Change solver architecture to support full bspline solving => point on object, tangency on edge (on endpoints already works), perpendicular to edge, knots...
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Sketcher: Bezier curves

Post by triplus »

abdullah wrote:However, for that, I do think it is not a sketcher visualization layer anymore. It must be something more general to work inter-workbenches. For that it should probably be real geometry and not just some lines pushed directly to coin3d.
Yes exactly. I was after real geometry to be optionally propagated in the 3D View. OK not in the foreseeable future and not from the Sketcher. ;)
It requires a very big investment for a teeny tiny benefit (IMO).
I had to ask as i have been asking myself this question every once in a while. Thanks for the answer. No Arc length constraint in Sketcher in foreseeable future!

As for the crash i had 15 minutes of spare time and did a quick test. I downloaded the file:

https://forum.freecadweb.org/viewtopic. ... 80#p161270

And if i open Sketch001 and use external geometry tool on spline from Sketch i don't get a crash. If that isn't what i should test more detailed description should be provided @jean.thil.

P.S. I did notice curvature comb expanding indefinitely on the result. As i guess there is no curvature (a line). I was wondering if in such scenario it make sense to show it? That is if you can somehow easily detect such scenario.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Sketcher: Bezier curves

Post by triplus »

User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Sketcher: Bezier curves

Post by microelly2 »

triplus wrote:Alternative approach to splines:

http://www.core77.com/posts/55368/When- ... al-Objects

;)
So we need a scalable whale icon instead of a circle to describe the weights
and an octopus for the knots :lol:
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher: Bezier curves

Post by abdullah »

NormandC wrote:Just did a quick test of the newly merged stuff and wanted to say that it's freaking awesome.

The curvature comb updating dynamically has an hypnotic quality. You just don't want to stop moving the control points. :D

I can't thank you enough for the work you're doing Abdullah! :)
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher: Bezier curves

Post by abdullah »

triplus wrote: P.S. I did notice curvature comb expanding indefinitely on the result. As i guess there is no curvature (a line). I was wondering if in such scenario it make sense to show it? That is if you can somehow easily detect such scenario.
You make a real point here. I will give a look to the code...
Post Reply