[Ticket #4204] 3D parametric curve

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
Pauvres_honteux
Posts: 728
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

[Ticket #4204] 3D parametric curve

Post by Pauvres_honteux »

FreeCAD_version.png
FreeCAD_version.png (7.69 KiB) Viewed 2416 times
OpenSUSE Leap 15.1
(FreeCAD Help doesn't contain any more info...)
.
I can not find a way to make a 3D parametric curve of arbitrary shape, ruled by two points and two direction vectors.
Note: it's supposed to be fully parametric, i.e. moving a point changes the 3D-curve shape.

Any ideas?
.
Datum_test_2.FCStd
(6.92 KiB) Downloaded 69 times
.
Spline_Bezier_Nurbs_Parametric_3D_curve_4.png
Spline_Bezier_Nurbs_Parametric_3D_curve_4.png (53.39 KiB) Viewed 2416 times
Last edited by Pauvres_honteux on Sat May 08, 2021 7:56 am, edited 1 time in total.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: 3D parametric curve

Post by saso »

Blend Curve from Curves WB would give you something similar if it would support the datum lines :|
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3D parametric curve

Post by freecad-heini-1 »

saso wrote: Fri Aug 02, 2019 11:12 am Blend Curve from Curves WB would give you something similar if it would support the datum lines :|
Part-Workbench Line and Curves-Workbench Blend-Curve.
Line_and_Blend_Curve.FCStd
(5.41 KiB) Downloaded 63 times
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: 3D parametric curve

Post by saso »

freecad-heini-1 wrote: Fri Aug 02, 2019 11:30 am Part-Workbench Line and Curves-Workbench Blend-Curve.
Yes I have made something similar with draft lines, but how to map them now to datum lines or points to make this fully parametric... Note that in this example Pauvres_honteux is controlling everything from the points not the lines... :?:

Part Line (maybe also Draft Line) could probably have the same map mode options as Datum Line (Through two points) :?:
Attachments
Datum_test_2 (1).FCStd
(9.71 KiB) Downloaded 49 times
Last edited by saso on Fri Aug 02, 2019 12:46 pm, edited 2 times in total.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: 3D parametric curve

Post by saso »

This is better... and if you change datum points to part vertex then you are even able to use the transform gizmo on it :)

Also note, if Parameter1 and Parameter2 of the Blend Curve would have support to be overridden (driven) by an object then DatumPoint_1.1 and DatumPoint_1.2 could be used for that ;)
Attachments
Datum_test_2 (2).FCStd
(8.95 KiB) Downloaded 53 times
User avatar
Vincent B
Veteran
Posts: 4741
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: 3D parametric curve

Post by Vincent B »

Here my first video. ;)
Hope it can be helpful.
https://youtu.be/r3-ebv89MiM
Attachments
BlendCurves.FCStd
(34.78 KiB) Downloaded 52 times
User avatar
Pauvres_honteux
Posts: 728
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: 3D parametric curve

Post by Pauvres_honteux »

Hello Saucy Tomato! :lol:

I tried your version and it works!!! However, getting all that stuff to work in a parametric way and get it back into the Body was a bit to much to handle for my FC, it crashed...

Wouldn't it be simpler if that blend curve could accept datum's directly instead?
Anybody knows who coded that blend curve? Perhaps he can do some magic with it?
User avatar
Pauvres_honteux
Posts: 728
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: 3D parametric curve

Post by Pauvres_honteux »

Chris_G wrote:
Hi Chris, I've got the impression you coded this "blend curve" thingie?
Would it be a lot of work to have it take datum-points and datum-lines as argument?
User avatar
Chris_G
Veteran
Posts: 2602
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: 3D parametric curve

Post by Chris_G »

Pauvres_honteux wrote: Sat Aug 03, 2019 6:30 pm Hi Chris, I've got the impression you coded this "blend curve" thingie?
Would it be a lot of work to have it take datum-points and datum-lines as argument?
I almost never use Part Design, so I don't know these datum things much.
I had a quick look, but I don't know yet if I'll be able to add these objects as input data for BlendCurve.
User avatar
Vincent B
Veteran
Posts: 4741
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: 3D parametric curve

Post by Vincent B »

Datumline can be draged outside a body.
...
Workfeature WB can do same objets as partdesign (line, point...), but is not all finished yet
Post Reply