[Solved] Feature #0003031: Draft To Sketch should handle bsplines and beziers

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

[Solved] Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by Kunda1 »

issue #0003031: Draft To Sketch should handle bsplines and beziers

Opening an exclusive legit discussion thread to generate discussion about this Feature. The inspiration for the ticket and idea started in https://forum.freecadweb.org/viewtopic. ... 21#p174038
Last edited by Kunda1 on Sun Nov 05, 2017 12:41 pm, edited 1 time in total.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by NormandC »

The only discussion there can be is, who will step up and implement it? ;)

Draft workbench has BSplines and Bézier curves.

Sketch now has B-spline support.

Draft has a Draft2Sketch conversion utility that is only partially working since it strips B-splines and Bézier from the conversion process. This is a legitimate feature request and one that could have indirect uses, like DXF support when exporting sketches containing B-splines...
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by yorik »

Yes draft2sketch should definitely handle it. TBH I was (lazily as always) waiting for things to stabilize in Sketch bsplines , since Abdullah seemed still working on it, but it seems that the python interface won't change anymore.

I'll do this when I have a moment. But bezier curves won't be handled. Or there is a way to convert them to bsplines?
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by Chris_G »

At the geometry level, you have :

Code: Select all

bspline = bezier.toBSpline(bezier.FirstParameter, bezier.LastParameter)
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by chrisb »

That is good news, since it improves the compatibility between FreeCAD and inkscape, which I like for it's image tracing capabilities and its usability of bezier curves. The user interface of the Sketcher's bsplines is very promising as well.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by chrisb »

Works lik a charm.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Solved] Feature #0003031: Draft To Sketch should handle bsplines and beziers

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply