[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!
User avatar
Kunda1
Posts: 5949
Joined: Thu Jan 05, 2017 9:03 pm

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

Postby Kunda1 » Thu Jun 15, 2017 12:36 pm

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.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

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

Postby NormandC » Sat Jun 17, 2017 5:44 pm

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
Site Admin
Posts: 11585
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

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

Postby yorik » Mon Jun 19, 2017 2:54 pm

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
Posts: 1165
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

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

Postby Chris_G » Mon Jun 19, 2017 3:08 pm

At the geometry level, you have :

Code: Select all

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

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

Postby chrisb » Mon Jun 19, 2017 8:24 pm

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.
chrisb
Posts: 19744
Joined: Tue Mar 17, 2015 9:14 am

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

Postby chrisb » Sun Nov 05, 2017 12:38 pm

Works lik a charm.
User avatar
Kunda1
Posts: 5949
Joined: Thu Jan 05, 2017 9:03 pm

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

Postby Kunda1 » Sun Nov 05, 2017 12:41 pm

Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features