Curved Shapes Workbench

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
GlouGlou
Posts: 2114
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curved Shapes Workbench

Postby GlouGlou » Wed Nov 06, 2019 9:47 pm

And finally made wing and his winglet. ;)
Attachments
SoaringWing.FCStd
(177.1 KiB) Downloaded 33 times
Capture.PNG
Capture.PNG (47.97 KiB) Viewed 596 times
User avatar
christi
Posts: 74
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Postby christi » Sat Nov 30, 2019 8:37 pm

I have added a new tool: Notch Connector
It cuts notches into the overlapping part of two bars

Image
cranec
Posts: 1
Joined: Sun Jun 30, 2019 8:20 am

Re: Curved Shapes Workbench

Postby cranec » Sun Feb 23, 2020 11:25 am

I Have a problem when loading this WB; during the init, i have this message
Log: Init: Initializing C:\Users\ome\AppData\Roaming\FreeCAD\Mod\CurvedShapes... failed
Log: ----------------------------------------------------------------------------------------------------
Log: Traceback (most recent call last):
File "<string>", line 120, in InitApplications
File "<string>", line 51, in <module>
File "<string>", line 11, in __init__
File "C:\Users\ome\AppData\Roaming\FreeCAD\Mod\CurvedShapes\CurvedShapes.py", line 5, in <module>
from importlib import reload
ImportError: cannot import name reload
User avatar
christi
Posts: 74
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Postby christi » Sat Feb 29, 2020 9:34 am

You can comment out the line

Code: Select all

#from importlib import reload
then search for all

Code: Select all

reload(whatever)
commands and comment out them as well.
Restart FreeCAD to apply the changes.

These instructions are only neccessary if you are working at the source code. They will always reload the python files when you create a new CurvedArray. Not sure why this does not work on your system. Are you using python version 3 ?
User avatar
Kunda1
Posts: 7337
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curved Shapes Workbench

Postby Kunda1 » Sat Feb 29, 2020 2:30 pm

christi wrote:
Sat Nov 30, 2019 8:37 pm
I have added a new tool: Notch Connector
It cuts notches into the overlapping part of two bars
This is very cool! But honestly a little perplexing why it's in a 'Curved Shapes' workbench. I bet the carpenters, woodworkers and the Arch folks would love this feature. Though I doubt they'd think to look in this workbench for this feature.
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
christi
Posts: 74
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Postby christi » Fri Mar 06, 2020 1:53 pm

I have added a distribution algorithm to CurvedArray and CurvedSegment.

Default Distribution: linear
Image

Distribution: parabolic (x²)
Image

Distribution: x³
Image

Distribution: sinusoidal
Image

Distribution: elliptic
Image
User avatar
Kunda1
Posts: 7337
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curved Shapes Workbench

Postby Kunda1 » Fri Mar 06, 2020 2:03 pm

christi wrote:
Fri Mar 06, 2020 1:53 pm
I have added a distribution algorithm to CurvedArray and CurvedSegment
Nice! Can you elaborate on what the usecase for each one would be?
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
christi
Posts: 74
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Postby christi » Fri Mar 06, 2020 2:26 pm

Kunda1 wrote:
Fri Mar 06, 2020 2:03 pm
Nice! Can you elaborate on what the usecase for each one would be?
If you create a surface with the Curved Array, a different distribution may give you better results.

If you create an elliptic wing, distribution elliptic would be the best solution.
If you create the Curved Array inside a half circle, sinusoidal is best.
If the hullcurves are created from simple spline curves, parabolic or x³ may give you the best results.
If you are unsure, choose linear.
User avatar
Kunda1
Posts: 7337
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curved Shapes Workbench

Postby Kunda1 » Thu Mar 26, 2020 3:20 pm

JOKO Engineering made a tutorial on using CurvedShapes

phpBB [video]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
khumarahn
Posts: 11
Joined: Tue Feb 11, 2020 10:51 am

Re: Curved Shapes Workbench

Postby khumarahn » Mon Mar 30, 2020 12:10 pm

A very impressive workbench!!! And may thanks to Joko for his video.

I am trying to design a fan duct for a 3d printer, and hitting an issue trying to connect to rectangle sketches which are at 90 degrees to each other with a Curved Segment, at the end of the profile.
screenshot-20200330@130527.png
screenshot-20200330@130527.png (146.82 KiB) Viewed 165 times
It can get a bit better with less interpolating items, but there is always a (small in size) warping at the end.

Can this be helped?
Attachments
test.FCStd
(42.62 KiB) Downloaded 4 times