Curves workbench

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
Jolbas
Posts: 327
Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden

Re: Curves workbench

Post by Jolbas »

I use the flatten face a lot right now and I always want the inPlace parameter to be false. I can edit the script to set this to false but then I need to edit the script on every update. I suggest adding a default value in user preferences.

Example code to add to the beginning of FlattenFP.py:

Code: Select all

preferences = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Curves")
if 'defaultFlattenInPlace' not in preferences.GetBools():
    preferences.SetBool("defaultFlattenInPlace",True)
And replace the initialization of obj.InPlace in FlattenProxy with:

Code: Select all

obj.InPlace = preferences.GetBool("defaultFlattenInPlace", True)
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

Done.
Thanks for your contribution.
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... misusing Sketch_on_Surface in a way like Combined_Curves (like cylinder coordinates)
for a graphic construction of a seamen's knot (some years ago I did it with Python).
Meanwhile halfway understanding the tool !!
1 month too late for 14. July.

THead_graf.png
THead_graf.png (126.57 KiB) Viewed 2696 times
Attachments
T_Head_3-5_2.FCStd
FC.20.1
(132.29 KiB) Downloaded 26 times
T_Head_6.FCStd
FC.20.1
(112.77 KiB) Downloaded 35 times
Last edited by hammax on Wed Aug 17, 2022 4:24 pm, edited 1 time in total.
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

Nice !
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

new blend curve feature in Surface wb today?

Code: Select all

Version: 0.21.30193 (Git)
Attachments
Capture.JPG
Capture.JPG (12.73 KiB) Viewed 1691 times
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Curves workbench

Post by saso »

Nice! ... Control points, when set to visible for the element (blend curve), the visibility should probably better get hidden when the main element (blend curve) gets hidden... ?
Attachments
blendcurve_ctrlpts.jpg
blendcurve_ctrlpts.jpg (9.99 KiB) Viewed 1667 times
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

Vincent B wrote: Fri Aug 26, 2022 6:23 pm new blend curve feature in Surface wb today?
Yes, I had my son doing a software development internship this summer, and his task was to start integrating BlendCurve / BlendSurface into Surface workbench.
BlendCurve was merged last week, and I'll keep up with BlendSurface.
saso wrote: Fri Aug 26, 2022 6:53 pm Nice! ... Control points, when set to visible for the element (blend curve), the visibility should probably better get hidden when the main element (blend curve) gets hidden... ?
Displaying the control points is not our work. We just inherited from "Part::Spline" feature that behaves that way.
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... concerning Freehand_BSpline tool in CurvesWB.
Trying to generate a logarithmic spiral only by means of sketcher (and not by a mathematics Macro)
https://forum.freecadweb.org/viewtopic.php?f=3&t=71338
I used the Freehand_BSpline to generate the final curve in a parametric way (DraftWB BSpline is not parametric!).
It seems to work, but looking at the Comb tool it isn't perfect smooth (low grade polynomic approximation?).
Interpolation_Curve has similar problems.
Not understanding the "Points" and "Tangent" feature and their purpose in the property tab,
I know that especially the Log-Spiral must have simple tangent-properties ( similar to Loxodrome in navigation).
Are there any hints by documentation?

LogSpiral_3.png
LogSpiral_3.png (47.99 KiB) Viewed 1540 times
Attachments
LogSpiral.FCStd
(149.42 KiB) Downloaded 26 times
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Curves workbench

Post by keithsloan52 »

Vincent B wrote: Fri Aug 26, 2022 6:23 pm new blend curve feature in Surface wb today?

Code: Select all

Version: 0.21.30193 (Git)
So is there any prospect of having a Shape which was created with a call to Part.BSplineCurve() converted into a feature that is editable with Surface or Curves workbench?
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

yes, why not?
Post Reply