Part API Euler Spirals?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Part API Euler Spirals?
Is the part API support euler spirals? If not, can someone add it?
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Part API Euler Spirals?
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.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Part API Euler Spirals?
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
https://images.app.goo.gl/awrp9aRBe8pAWKb89
or this:
https://images.app.goo.gl/UZ5g3QuDju8uvqaB8
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Part API Euler Spirals?
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.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Part API Euler Spirals?
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
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Part API Euler Spirals?
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.
Re: Part API Euler Spirals?
And a quick search didn't return any result in the OpenCascade API either ...
Re: Part API Euler Spirals?
Chris_G: thanks for confirming.
HakanSevven12: You may have a look at the addon macro 3D_Parametric_Curve.
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.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Part API Euler Spirals?
What are you thinking about that?wmayer wrote:
Last edited by HakanSeven12 on Tue Jun 29, 2021 6:00 am, edited 1 time in total.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: Part API Euler Spirals?
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?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