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

Re: Curves workbench

Postby GlouGlou » Thu Nov 08, 2018 12:29 pm

Got it, thanks! ;)
User avatar
GlouGlou
Posts: 1250
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Thu Nov 08, 2018 6:41 pm

Sweep2rail go more far that the last profile.? :roll:
Attachments
sweep.FCStd
(34.49 KiB) Downloaded 12 times
Capture.PNG
Capture.PNG (108.82 KiB) Viewed 476 times
User avatar
Chris_G
Posts: 991
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Fri Nov 09, 2018 9:43 pm

GlouGlou wrote:
Thu Nov 08, 2018 6:41 pm
Sweep2rail go more far that the last profile.? :roll:
Yes, the computed surface goes too far, half turn, and back to the last profile.
I have seen this several times.
I suspect a parametrization problem in my algorithm, but I don't know if I'll look at that anytime soon.
More recently than Sweep2Rails, I gave a try at porting a Gordon Surface tool from TiGL.
It is a more general algorithm than Sweep2Rails.
It needs 2 Part-Compound object as input (1 compound for profile edges and 1 for rails).
Attachments
sweep-2.FCStd
(24.35 KiB) Downloaded 11 times
User avatar
hammax
Posts: 774
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: Curves workbench

Postby hammax » Mon Nov 19, 2018 8:39 am

Hi Chris,
you recently made an update on BSplineAlgorithms: "fix kink knots insertion"
Under Windows10_32 I could not use BSpline in CurvesWB until now, because it always froze.
Now I get at least a wire without freezing.
Trials to convert this wire to a spline curve don't succeed.

Please explain the usage.
CurvesWB_Spline.png
CurvesWB_Spline.png (40.8 KiB) Viewed 377 times
User avatar
Chris_G
Posts: 991
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Mon Nov 19, 2018 9:49 am

hammax wrote:
Mon Nov 19, 2018 8:39 am
Hi Chris,
you recently made an update on BSplineAlgorithms: "fix kink knots insertion"
Under Windows10_32 I could not use BSpline in CurvesWB until now, because it always froze.
Now I get at least a wire without freezing.
Hi,
The fix probably happened in this commit.
hammax wrote:
Mon Nov 19, 2018 8:39 am
Trials to convert this wire to a spline curve don't succeed.
Please explain the usage.
The goal of this tool was mainly to quickly draw a BSpline curve.
The available commands are shown in your screenshot :
"Left Mouse Button : add pole"
"Del : remove last pole"
"I / D : Increase or Decrease degree"
"Left CTRL : snap" (doesn't work good, better don't use it)
"Enter : Accept"
"Esc : Abort"

At the beginning the Degree is 1 (this is why it looks like a polyline), so after a couple of poles added, you should increase the degree with the I key.
User avatar
microelly2
Posts: 4242
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Curves workbench

Postby microelly2 » Fri Nov 23, 2018 1:29 pm

hello Chris_G

it would be nice if the start point of the uv grid in the Geominfo Display can have another color than the other poles (red).
In case of a surface I can find it using the displayed u v letters
but in case of a curve it is not easy to get the information where u=0 is.
User avatar
Chris_G
Posts: 991
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Fri Nov 23, 2018 3:50 pm

Hello,
I just pushed a fix.
First pole of a curve is now red, while the others are purple.
On a surface, the u=0 isocurve is orange, and the v=0 is yellow.
User avatar
microelly2
Posts: 4242
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Curves workbench

Postby microelly2 » Fri Nov 23, 2018 4:05 pm

Thank you, works fine.
User avatar
GlouGlou
Posts: 1250
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Thu Nov 29, 2018 6:50 pm

Hi,
How I can use Gordon feature for this kind of shell. I've tried with "Fill boundary curve" from "Surface WB", but you can see the surface is not following profiles very well. I've tried your Gordon tool as well but without expected success.Thanks.
Attachments
Capture.PNG
Capture.PNG (74.48 KiB) Viewed 230 times
TopTest.FCStd
(52.39 KiB) Downloaded 10 times
User avatar
microelly2
Posts: 4242
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Curves workbench

Postby microelly2 » Thu Nov 29, 2018 7:42 pm

bp_915.png
bp_915.png (44.83 KiB) Viewed 223 times
This is not the gordon surface of the curves wb but my method (nurbs wb), the results should be the same.
I use 3 x 3 curves
you can edit the sketches, the surface should follow

https://www.dropbox.com/s/txm0brnr9oj8n ... fcstd?dl=0
we had a use case some time ago
https://youtu.be/GPPMmLVzEro