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!
Post Reply
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

An example of Gordon Surface based upon OCC

Post by Chris_G »

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
Veteran
Posts: 7788
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: An example of Gordon Surface based upon OCC

Post by freecad-heini-1 »

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
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: An example of Gordon Surface based upon OCC

Post by microelly2 »

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
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: An example of Gordon Surface based upon OCC

Post by hammax »

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

Re: An example of Gordon Surface based upon OCC

Post by UR_ »

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

Re: An example of Gordon Surface based upon OCC

Post by Chris_G »

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
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: An example of Gordon Surface based upon OCC

Post by microelly2 »

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
Veteran
Posts: 7788
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: An example of Gordon Surface based upon OCC

Post by freecad-heini-1 »

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
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: An example of Gordon Surface based upon OCC

Post by hammax »

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

Re: An example of Gordon Surface based upon OCC

Post by Chris_G »

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 5564 times
Post Reply