How to duplicate B-spline?

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!
Post Reply
mdesign
Posts: 104
Joined: Sat Mar 13, 2021 10:56 am

How to duplicate B-spline?

Post by mdesign »

How to duplicate B-spline (or copy and paste to have two same B-splines)?

I would like to offset that spline. So, I`ve thought that I will duplicate it and set it as parallel. I would like to get thickness to that B-spline to revolve it after.

Image
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: How to duplicate B-spline?

Post by Shalmeneser »

edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: How to duplicate B-spline?

Post by edwilliams16 »

Offsetting and duplicate+translate are different operations. The former you can only do approximately. It is particularly problematical if the inner radius of curvature is less than the offset. https://forum.freecadweb.org/viewtopic.php?t=53712
mdesign
Posts: 104
Joined: Sat Mar 13, 2021 10:56 am

Re: How to duplicate B-spline?

Post by mdesign »

Thanks a lot for your help. Is there any future plans about adding an offset tool in sketcher (even not exact).
The Interior curve after offset should have a radius minus the thickness value and position offset as shown in your link above.

edit: OK. I`ve found a sweep trick to do offset of the curve. Maybe it will be enough.
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: How to duplicate B-spline?

Post by chrisb »

I just tried the following with success:
- make an offset2D of the spline
- close the ends in Draft workbench with straight lines
- upgrade
- revolve
As upgrade is non parametric the whole process is non parametric.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: How to duplicate B-spline?

Post by chrisb »

mdesign wrote: Thu Jun 24, 2021 9:43 pm I would like to get thickness to that B-spline to revolve it after.
If I use a compound instead of upgrade, the model stays partially parametric. Only the Draft lines have to be corrected if the endpoints of the B-spline move. You could probably improve parametricity if you use additional sketches for the closing lines.
Attachments
duplicateBSpline.FCStd
(31.77 KiB) Downloaded 24 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mdesign
Posts: 104
Joined: Sat Mar 13, 2021 10:56 am

Re: How to duplicate B-spline?

Post by mdesign »

@chrisb:

Thanks a lot. Very interesting.

After small tweaking of middle control points, the whole setup is broken. Why?

Another thing is that the final revolve is not updating after the control point move.

I like that procedural approach very much but it works strange for me. IMO that procedural offset line is flipped to the other side because those small lines are in the wrong place now. Maybe that`s why it`s not updating. But why it`s flipping after the control point moving?

Zrzut ekranu 2021-06-26 074933.jpg
Zrzut ekranu 2021-06-26 074933.jpg (129.14 KiB) Viewed 1579 times
Attachments
duplicateBSpline_after_tweaks.FCStd
(23.9 KiB) Downloaded 17 times
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: How to duplicate B-spline?

Post by heda »

if you are ok with 3d-offset in part wb...
Snip macro screenshot-fde6fb.png
Snip macro screenshot-fde6fb.png (25.17 KiB) Viewed 1552 times
User avatar
Vincent B
Veteran
Posts: 4734
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: How to duplicate B-spline?

Post by Vincent B »

chrisb wrote: Fri Jun 25, 2021 7:53 am Only the Draft lines have to be corrected if the endpoints of the B-spline move. You could probably improve parametricity if you use additional sketches for the closing lines.
You can find parametric line feature in CurvesWb. Just select two vertexes in 3D view then run the tool.
mdesign
Posts: 104
Joined: Sat Mar 13, 2021 10:56 am

Re: How to duplicate B-spline?

Post by mdesign »

@GlouGlou: Thanks a lot.
Post Reply