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
Chris_G
Posts: 1146
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Sun Sep 29, 2019 12:26 pm

The first edge "JoinCurve013005001" is not good.
It is mathematically valid, but it is wrong for BlendCurve algorithm.
It is a BSpline Curve of degree 3.
It has 4 control points P.
But P1=P2 and P3=P4
bad.png
bad.png (9.85 KiB) Viewed 581 times
On the other hand, you can see that the other curve is good, all control points are distinct:
good.png
good.png (9.65 KiB) Viewed 581 times
So the blendcurve fails, because it doesn't support this kind of degenerated curves.
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sun Sep 29, 2019 1:35 pm

ok, thanks, so I discretized it. Then it's working.
Attachments
Capture.PNG
Capture.PNG (15.79 KiB) Viewed 565 times
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sun Sep 29, 2019 5:27 pm

I'm trying to split a curve to 3 parts, but its not working. :roll:
I've downloaded the wb today.
Attachments
Split3Part.FCStd
(4.84 KiB) Downloaded 12 times
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sun Sep 29, 2019 5:41 pm

Surface challenge for everyone: make a nice and smooth surface. :D
Attachments
Capture.PNG
Capture.PNG (7.22 KiB) Viewed 540 times
SurfaceChallenge.FCStd
(8.07 KiB) Downloaded 12 times
User avatar
Chris_G
Posts: 1146
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Sun Sep 29, 2019 5:54 pm

GlouGlou wrote:
Sun Sep 29, 2019 5:27 pm
I'm trying to split a curve to 3 parts, but its not working. :roll:
I've downloaded the wb today.
You have the same value (30%) twice.
I need to add a check for this situation.
By the way, double click the splitCurve (in tree view) for graphical editing.
"v" key to change unit during dragging
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sun Sep 29, 2019 6:05 pm

wow you right i must enter 33% and 66% for make a 3 split curves. sorry :? :? :?
User avatar
Chris_G
Posts: 1146
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Sun Sep 29, 2019 6:16 pm

Numbers without unit are real parameters (not sure it is really useful)
Or you can use % and mm
Negative values are allowed, and are calculated from the end of the curve.
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Mon Sep 30, 2019 7:48 pm

hammax wrote:
Sun Sep 22, 2019 6:32 am
… keep it simply simple = KISS.
If think too. ;) But i'm trying to most closely with the original drawing.
Why not a tool to iron the surfaces? :lol:
Attachments
HalfHull.FCStd
(642.93 KiB) Downloaded 13 times
User avatar
GlouGlou
Posts: 1682
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Mon Oct 07, 2019 5:55 pm

Strange behaviour: split curve and extend curve move their Z and Y position with this sketch. :?
Attachments
bizarre.FCStd
(4.18 KiB) Downloaded 9 times
LLuoss
Posts: 16
Joined: Mon Apr 29, 2019 6:41 am

Re: Curves workbench

Postby LLuoss » Tue Oct 08, 2019 1:49 am

Chris_G wrote:
Sun Sep 29, 2019 10:13 am
I have pushed a small change to Gordon surface.
It is now possible to change the max number of control points (it was fixed to 80 before)
In your case, increasing this value to 300 / 400 will help catching the small detail on one side of the surface.
In python script :

Code: Select all

gordon1 = gordon.InterpolateCurveNetwork(...)
gordon1.max_ctrl_pts = 400
But it will produce a much heavier surface.
I've tried, but my problem still doesn't seem to be solved. I'm using version 0.18