Curves workbench weirdness?

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

Re: Curves workbench weirdness?

Post by Chris_G »

Blend Surface uses some Blend Curves under the hood to build the surface.
The number of BlendCurves used is set by the "Samples" property (20, by default).

A blend curve uses a scale value at each of its extremities, to determine its shape.
In order to reduce computation time, these scale values are not computed for the 20 Sample curves.
Instead, they are computed for a lower number of "Scale Samples" (3, by default), and interpolated

But this default value of 3 is obviously too low. I will raise it to 6.

Olav wrote: Fri Jul 23, 2021 8:09 am Now of course the thickness tool fails on the solid because "BRep_API: command not done" and "Unknown OCC exception". But that's a different topic. Sigh.
Part Thickness is a very sensible operation that can fail quite often.
I had success with the round cap, but not with the other one.
Attachments
thickness.png
thickness.png (21.7 KiB) Viewed 890 times
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: Curves workbench weirdness?

Post by Cekuhnen »

Here is a usual Surfacing Technique to help the blend surfaces

NOTE: Think about NURBS as a plastic stick that always wants to straighten out

So to make blends the way we want we have to create curves to force the surface into


This fixes the Surface WB Filling command
This command has a guide rail option.

This curve is made by 3d blend curves based on curve projections onto / from the target surfaces

Screen Shot 2021-07-23 at 10.49.46 AM.png
Screen Shot 2021-07-23 at 10.49.46 AM.png (71.28 KiB) Viewed 832 times
FreeCAD shows me the surface in a pretty rough state but when loaded into my other CAD app the edges pass G1 Tangency checks
There is some noise on the surface - particularly the smaller Surface Fill seems to have some inflection points.
Screen Shot 2021-07-23 at 10.46.43 AM.png
Screen Shot 2021-07-23 at 10.46.43 AM.png (270.54 KiB) Viewed 832 times
Screen Shot 2021-07-23 at 10.46.51 AM.png
Screen Shot 2021-07-23 at 10.46.51 AM.png (346.2 KiB) Viewed 832 times
Screen Shot 2021-07-23 at 10.48.41 AM.png
Screen Shot 2021-07-23 at 10.48.41 AM.png (170.83 KiB) Viewed 832 times
Attachments
Blending.FCStd
(258.4 KiB) Downloaded 22 times
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: Curves workbench weirdness?

Post by Cekuhnen »

Chris_G wrote: Fri Jul 23, 2021 6:00 am Raise the number of Scale Samples from 3 to 6 or 7.
Then you can use all the visible faces to build a parametric solid.
very interesting post - the blend surfaces are even g1 to each other? pure luck/coincident in this model?
thats why i mixed blend surface and fill surface with g1 for all edges
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: Curves workbench weirdness?

Post by Cekuhnen »

Hey Chris_G

any idea why the curve WB blend surface deforms so much on one side?
Screen Shot 2021-07-23 at 11.56.47 AM.png
Screen Shot 2021-07-23 at 11.56.47 AM.png (104.4 KiB) Viewed 805 times
Screen Shot 2021-07-23 at 11.56.56 AM.png
Screen Shot 2021-07-23 at 11.56.56 AM.png (108.82 KiB) Viewed 805 times
.
.
.
Interesting is how also surface WB filling has that issue
Screen Shot 2021-07-23 at 12.20.46 PM.png
Screen Shot 2021-07-23 at 12.20.46 PM.png (127.29 KiB) Viewed 799 times
Attachments
blend surface bend.FCStd
(101.46 KiB) Downloaded 23 times
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
User avatar
Vincent B
Veteran
Posts: 4734
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench weirdness?

Post by Vincent B »

Coons, as often, carry out a nice surface. ;)
Attachments
Capture.JPG
Capture.JPG (43.88 KiB) Viewed 787 times
User avatar
Vincent B
Veteran
Posts: 4734
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench weirdness?

Post by Vincent B »

Cekuhnen wrote: Fri Jul 23, 2021 2:54 pm FreeCAD shows me the surface in a pretty rough state but when loaded into my other CAD app the edges pass G1 Tangency checks
There is some noise on the surface - particularly the smaller Surface Fill seems to have some inflection points.
Not too bad for a free software! :D
Attachments
BlendingOther.FCStd
(621.51 KiB) Downloaded 23 times
Capture.JPG
Capture.JPG (22.48 KiB) Viewed 774 times
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: Curves workbench weirdness?

Post by Cekuhnen »

GlouGlou wrote: Fri Jul 23, 2021 8:10 pm Not too bad for a free software! :D
Yeah it is slightly above TinkerCAD ;)

I have the same approach on a previous page with the surface WB SurfaceFill using an internal curve to guide it.

I am confused why the curve WB BlendCurve also shows a similar issue
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: Curves workbench weirdness?

Post by Cekuhnen »

GlouGlou wrote: Fri Jul 23, 2021 8:10 pm Not too bad for a free software! :D
He now added a Blend solid tool - super amazing !
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
Olav
Posts: 211
Joined: Sun Nov 27, 2016 7:58 pm
Location: Netherlands

Re: Curves workbench weirdness?

Post by Olav »

Chris_G wrote: Fri Jul 23, 2021 8:37 am Blend Surface uses some Blend Curves under the hood to build the surface.
The number of BlendCurves used is set by the "Samples" property (20, by default).

A blend curve uses a scale value at each of its extremities, to determine its shape.
In order to reduce computation time, these scale values are not computed for the 20 Sample curves.
Instead, they are computed for a lower number of "Scale Samples" (3, by default), and interpolated

But this default value of 3 is obviously too low. I will raise it to 6.
Thanks for the explanation. Most of this goes over my head I'm afraid, but I've really just started learning the Curves workbench last week or so after watching a video.

Do I understand correctly that you are the developer of this? Awesome work, I can already tell this is going to be very useful in some projects I have in mind.

So thanks again.
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench weirdness?

Post by Chris_G »

Olav wrote: Sat Jul 24, 2021 2:36 pm Do I understand correctly that you are the developer of this? Awesome work, I can already tell this is going to be very useful in some projects I have in mind.
Yes. But please keep in mind that the workbench should be considered experimental. Don't use it for any serious work.
Post Reply