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
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

Zivatar wrote: Tue Apr 12, 2022 1:56 pm Meanwhile I carried out a different test:
Symptoms are the same on a different fresh system.
KR,
Zivatar
I fixed another thing. Please update the workbench again.
There will be still an error message after loading the project, but you can ignore this.
Zivatar
Posts: 23
Joined: Thu Nov 12, 2020 5:31 pm

Re: Curved Shapes Workbench

Post by Zivatar »

Thank You for the answer and for the work also, of course!
concifederico
Posts: 29
Joined: Fri Apr 02, 2021 2:36 pm

Re: Curved Shapes Workbench

Post by concifederico »

:P impressive work on this wb. Thank you. Today I have created a propeller. I usually print and fly them on small planes. However I had to scale an arc profile and then I had to thicken it to create a flat printable volume. That was because the hulls can scale the base sketch but they can't rotate it. Could be possible to rotate the base sketch by a given profile? That would improve the propeller design by scaling and rotating. Thanks again.
concifederico
Posts: 29
Joined: Fri Apr 02, 2021 2:36 pm

Re: Curved Shapes Workbench

Post by concifederico »

Some pictures to make it clear.. Obviously the root section of the blade could be improved by just thickening a closed profile. But to do that without distortion a rotation of the base sketch is needed. That rotation is not linear (Twist becomes useless) and as a feature request, the user should be able to apply first rotation and then scaling and also the opposite order.
Regards,

Federico
Attachments
2.jpg
2.jpg (32.43 KiB) Viewed 2879 times
1.jpg
1.jpg (40.13 KiB) Viewed 2879 times
Captura de pantalla de 2022-07-04 20-16-22.png
Captura de pantalla de 2022-07-04 20-16-22.png (257.46 KiB) Viewed 2879 times
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

concifederico wrote: Mon Jul 04, 2022 2:50 am Could be possible to rotate the base sketch by a given profile? That would improve the propeller design by scaling and rotating. Thanks again.
This is only possible with some manual steps:
- Create a CurvedArray with Surface=False and Solid=False
- Select the CurvedArray, go to the Part workbench and select Part -> Compound -> Explode Compound. This will give you an array of the wing ribs.
- Apply the desired rotation to each wing rib
- Create a loft over the ribs
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curved Shapes Workbench

Post by Vincent B »

InterpolatedMiddle seems no more working after saved and reloaded.
...
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 2022.709.26244 +5001 (Git)
Build type: Release
Branch: LinkDaily
Hash: 096210d21183e9dfdc3b25777760bfb6c00a210b
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: French/France (fr_FR)
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

Vincent B wrote: Fri Jul 22, 2022 6:09 pm InterpolatedMiddle seems no more working after saved and reloaded.
I fixed it. Please update the workbench
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

concifederico wrote: Mon Jul 04, 2022 2:50 am Could be possible to rotate the base sketch by a given profile? That would improve the propeller design by scaling and rotating. Thanks again.
I have now added support for rotation of each sketch. There is a new parameter Twists in CurvedArray which is an array of rotation angles for each rib.
Yvanr
Posts: 3
Joined: Sat Aug 20, 2022 8:03 am

Re: Curved Shapes Workbench

Post by Yvanr »

christi wrote: Mon Jul 25, 2022 7:48 am
Vincent B wrote: Fri Jul 22, 2022 6:09 pm InterpolatedMiddle seems no more working after saved and reloaded.
I fixed it. Please update the workbench
I also have the same problem with CurvedSegment not working after saving and reloading :(

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/Australia (en_AU)
Installed mods: 
  * CurvedShapes 1.0.4
  * Curves 0.5.6
  * Help 1.0.3
  * ProDarkThemePreferencePack 1.0.0
Yvanr
Posts: 3
Joined: Sat Aug 20, 2022 8:03 am

Re: Curved Shapes Workbench

Post by Yvanr »

I have made the following changes to CurvedSegment.py. (Same changes made earlier to InterpolatedMiddle.py)

Code: Select all

59	-	if not fp.Shape1 or not hasattr(fp.Shape1, "Shape"):
59	+	if not fp.Shape1 or not hasattr(fp.Shape1, "Shape") or len(fp.Shape1.Shape.Edges) == 0:
        
62	-	if not fp.Shape2 or not hasattr(fp.Shape2, "Shape"):
62	+	if not fp.Shape2 or not hasattr(fp.Shape2, "Shape") or len(fp.Shape2.Shape.Edges) == 0:
It is now working as expected :)

Thank you Christi for this great work!
Post Reply