An example of Gordon Surface based upon OCC

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

An example of Gordon Surface based upon OCC

Postby Chris_G » Fri Jul 06, 2018 2:57 pm

Here is an interesting thread to read about Curve Network Interpolation
In the latest comments of the thread are some links about an implementation of these Gordon Surfaces based upon OCC.
The surface workbench would definitely deserve such a feature !
Image
freecad-heini-1
Posts: 5755
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: An example of Gordon Surface based upon OCC

Postby freecad-heini-1 » Sat Jul 07, 2018 1:15 pm

Thank you so much Chris, very interesting to me.
I hope that you and / or Werner could integrate this tools into the Surface workbench.

I'm impressed:
Image

Image
User avatar
microelly2
Posts: 4361
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: An example of Gordon Surface based upon OCC

Postby microelly2 » Sat Jul 07, 2018 2:19 pm

interesting to see a general implementation.
I used the idea to stretch surfaces to a given area by 2 x 2 lines.
https://youtu.be/n8UqkWirIS0
I use simply u*v, u*(1-v), v*(1-u), (u-1)*(v-1) as blending functions.
this was the ide for a 3 x 3 pattern (still in 2D).
https://youtu.be/UQZCsEjYSTM
User avatar
hammax
Posts: 841
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: An example of Gordon Surface based upon OCC

Postby hammax » Sat Jul 07, 2018 3:41 pm

The surface workbench would definitely deserve such a feature !
# Me Too
UR_
Posts: 982
Joined: Tue Jan 03, 2017 8:42 pm

Re: An example of Gordon Surface based upon OCC

Postby UR_ » Sat Jul 07, 2018 5:20 pm

I think the last sgrogan needs ATM, is another dependency :shock:
rainman110 commented on 28 May
...The code is pretty hefty and is roughly 3000 lines of code long. Hence, you need tigl for now.
User avatar
Chris_G
Posts: 1104
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: An example of Gordon Surface based upon OCC

Postby Chris_G » Sat Jul 07, 2018 5:45 pm

UR_ wrote:
Sat Jul 07, 2018 5:20 pm
I think the last sgrogan needs ATM, is another dependency :shock:
I totally agree that FreeCAD shouldn't get any new big dependency.
The Gordon surface implemented in tigl "seems" to be spread in a couple of files only.
In my opinion, it would be better to make our own feature, based on their work, if licenses compatibility is OK.
... Or wait for OCC to integrate it ?
I would like to give a try at a FC+python port first, to see how it works ...
User avatar
microelly2
Posts: 4361
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: An example of Gordon Surface based upon OCC

Postby microelly2 » Sun Jul 08, 2018 6:12 am

Chris_G wrote:
Sat Jul 07, 2018 5:45 pm
UR_ wrote:
Sat Jul 07, 2018 5:20 pm
I think the last sgrogan needs ATM, is another dependency :shock:
I totally agree that FreeCAD shouldn't get any new big dependency.
The Gordon surface implemented in tigl "seems" to be spread in a couple of files only.
In my opinion, it would be better to make our own feature, based on their work, if licenses compatibility is OK.

I would like to give a try at a FC+python port first, to see how it works ...
+1
freecad-heini-1
Posts: 5755
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: An example of Gordon Surface based upon OCC

Postby freecad-heini-1 » Sun Jul 08, 2018 7:59 am

Chris_G wrote:
Sat Jul 07, 2018 5:45 pm
The Gordon surface implemented in tigl "seems" to be spread in a couple of files only.
In my opinion, it would be better to make our own feature, based on their work, if licenses compatibility is OK.
... Or wait for OCC to integrate it ?
I would like to give a try at a FC+python port first, to see how it works ...
+1
User avatar
hammax
Posts: 841
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: An example of Gordon Surface based upon OCC

Postby hammax » Mon Jul 09, 2018 4:55 pm

Hi Chris,
you are actually working on the GordonSurface-feature (I'm following your CurvesWB-experiments in GitHub)
and I'm curious seeing first results.
Used your example for a loft-experiment => Gordon will surely be better.

Gordon_2.PNG
Gordon_2.PNG (49.2 KiB) Viewed 1329 times
User avatar
Chris_G
Posts: 1104
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: An example of Gordon Surface based upon OCC

Postby Chris_G » Mon Jul 09, 2018 8:25 pm

hammax wrote:
Mon Jul 09, 2018 4:55 pm
you are actually working on the GordonSurface-feature (I'm following your CurvesWB-experiments in GitHub)
and I'm curious seeing first results.
Used your example for a loft-experiment => Gordon will surely be better.
Hi,
I got it working on basic test-files tonight.
But there are a couple of things to fix still (like closed profiles, like in your picture).
And most important, I would like to check if output surfaces are "watertight-matching" the boundary edges.
gordon-1.jpg
gordon-1.jpg (43.59 KiB) Viewed 1309 times