Part API Euler Spirals?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Part API Euler Spirals?

Post by HakanSeven12 »

Is the part API support euler spirals? If not, can someone add it?
chrisb
Veteran
Posts: 54210
Joined: Tue Mar 17, 2015 9:14 am

Re: Part API Euler Spirals?

Post by chrisb »

Have a look at what the Python console shows on creation of a spiral.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Part API Euler Spirals?

Post by HakanSeven12 »

Euler spiral not same thing with this one. It start from infinite radius and goes to a spesific radius like this:

https://images.app.goo.gl/awrp9aRBe8pAWKb89

or this:

https://images.app.goo.gl/UZ5g3QuDju8uvqaB8
chrisb
Veteran
Posts: 54210
Joined: Tue Mar 17, 2015 9:14 am

Re: Part API Euler Spirals?

Post by chrisb »

I see, sorry for the noise. Asking for the API means that OCC supports it?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Part API Euler Spirals?

Post by HakanSeven12 »

Like we can create lines circles or arcs by using api and it return a shape and we can use that shape. I want something similar for spiral
chrisb
Veteran
Posts: 54210
Joined: Tue Mar 17, 2015 9:14 am

Re: Part API Euler Spirals?

Post by chrisb »

I understand what you want, but the API (=Application Programming Interface) is only an interface to some OCC functions. AFAIK these functions are not implemented natively in FreeCAD.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Part API Euler Spirals?

Post by Chris_G »

And a quick search didn't return any result in the OpenCascade API either ...
chrisb
Veteran
Posts: 54210
Joined: Tue Mar 17, 2015 9:14 am

Re: Part API Euler Spirals?

Post by chrisb »

Chris_G: thanks for confirming.
HakanSevven12: You may have a look at the addon macro 3D_Parametric_Curve.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Part API Euler Spirals?

Post by HakanSeven12 »

wmayer wrote:
What are you thinking about that?
Last edited by HakanSeven12 on Tue Jun 29, 2021 6:00 am, edited 1 time in total.
wmayer
Founder
Posts: 20309
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Part API Euler Spirals?

Post by wmayer »

HakanSeven12 wrote: Sat Jun 05, 2021 6:37 am
wmayer wrote: Wed May 12, 2021 2:15 pm
What are you thinking about that?
Like we can create lines circles or arcs by using api and it return a shape and we can use that shape. I want something similar for spiral
While lines, circles or arcs are directly supported by OCCT this is not the case for Euler spirals. So, the only feasible way is to have a function that creates (an approximated) B-Spline curve from an Euler spiral. This function can be part of FreeCAD or a Python add-on. Are there any formulas to do the calculation?
Post Reply