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!
freecad-heini-1
Posts: 5897
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: Curves workbench

Postby freecad-heini-1 » Mon Sep 23, 2019 3:37 pm

hammax wrote:
Mon Sep 23, 2019 10:31 am
… please have a look at your frames' curvature combs and the resulting "cellulitis".
Compared to a Sketcher BSpline with ONLY 4 control points.


JustCurves_2.PNG
Why don't men have cellulite?
Because it looks terrible ... :lol:
User avatar
GlouGlou
Posts: 1674
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Mon Sep 23, 2019 6:54 pm

hammax wrote:
Mon Sep 23, 2019 10:31 am
… please have a look at your frames' curvature combs and the resulting "cellulitis".
You're right. I wanted stick closely to the picture. That's can't give a baby skin yet.
User avatar
hammax
Posts: 869
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: Curves workbench

Postby hammax » Wed Sep 25, 2019 8:12 am

… just another benefit of CurvesWB:
A solution for a 3D-bow-frame with combined_projection_curves, which is accepted by the Loft tool.
The comb_proj_curve is built by a sideview and (a top view) or better by a front view.
The front view must have a placement "outside" of the bow frame
and must have external references to the endpoints of the side view.

JustCurves_3.PNG
JustCurves_3.PNG (29.35 KiB) Viewed 549 times
JustCurves_4.PNG
JustCurves_4.PNG (41.29 KiB) Viewed 476 times
Attachments
Justcurves_5.FCStd
(157.78 KiB) Downloaded 16 times
Justcurves_4.FCStd
(116.79 KiB) Downloaded 15 times
Last edited by hammax on Thu Sep 26, 2019 6:04 am, edited 1 time in total.
LLuoss
Posts: 15
Joined: Mon Apr 29, 2019 6:41 am

Re: Curves workbench

Postby LLuoss » Thu Sep 26, 2019 1:34 am

LLuoss wrote:
Fri Sep 20, 2019 2:40 am
Chris_G wrote:
Mon Sep 16, 2019 9:11 am
LLuoss wrote:
Mon Sep 16, 2019 8:54 am
Hi,glad to see u again!I'm confused how to do these three steps with python code?Do you have any simple code examples for these three steps?Looking forward to your reply!Thanks!
Don't use this, it is outdated.
Use the Gordon surface.
I already answered about the Gordon surface scripting :

Code: Select all

import gordon
gordon = gordon.InterpolateCurveNetwork([bs0,bs1,bs2], [bs3,bs4,bs5], tol=0.1) # the bs* are BSpline curves
my_surface = gordon.surface()
Thanks!Finally it worked.But I still have some questions.Why does the contour of the resulting surface end up not coincident with the BSpline I used?
If I want to use an outline of my surface, how do I extract it?
Does anybody know these problems?It's very important to me!Thanks.
User avatar
Chris_G
Posts: 1141
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Thu Sep 26, 2019 5:06 am

LLuoss wrote:
Thu Sep 26, 2019 1:34 am
Does anybody know these problems?It's very important to me!Thanks.
Something didn't work as good as expected ... that's all I can guess from a screenshot.
LLuoss
Posts: 15
Joined: Mon Apr 29, 2019 6:41 am

Re: Curves workbench

Postby LLuoss » Fri Sep 27, 2019 7:24 am

Chris_G wrote:
Thu Sep 26, 2019 5:06 am
LLuoss wrote:
Thu Sep 26, 2019 1:34 am
Does anybody know these problems?It's very important to me!Thanks.
Something didn't work as good as expected ... that's all I can guess from a screenshot.
Did you have any problems using Gordon surface before?I still can't solve my problems.
User avatar
Chris_G
Posts: 1141
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Fri Sep 27, 2019 7:50 am

Of course, I did.
Gordon surface tool can fail or produce wrong results in MANY situations.
So I can't help without a test file.
LLuoss
Posts: 15
Joined: Mon Apr 29, 2019 6:41 am

Re: Curves workbench

Postby LLuoss » Sun Sep 29, 2019 6:53 am

Chris_G wrote:
Fri Sep 27, 2019 7:50 am
Of course, I did.
Gordon surface tool can fail or produce wrong results in MANY situations.
So I can't help without a test file.
Ok,thanks!I will send you a test file separately. If you are free, please help to find out what the problem is.
User avatar
Chris_G
Posts: 1141
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » 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.
User avatar
GlouGlou
Posts: 1674
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sun Sep 29, 2019 11:20 am

I can't blend two curves. Where my mistake? :roll:
Help. I would like as the red one. Scale1 seems to do nothing.
Attachments
NotBlend.FCStd
(5.78 KiB) Downloaded 9 times
Capture.PNG
Capture.PNG (99.15 KiB) Viewed 328 times