node editor - pyflow

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

Re: node editor - pyflow

Post by microelly2 »

Two nodes to find best fitting cylinders or sphers for a given surface
phpBB [video]


see too:
https://youtu.be/Ahdjfrpk2lA
https://youtu.be/Mz1CSYTJw6w
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

Find a curve with these constraints:
start and endpoint
tangent direction at start and endpoint
curvature at start and endpoint

result is a 6 poles bspline degree 3.
phpBB [video]
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: node editor - pyflow

Post by HakanSeven12 »

Is there a node for delaunay triangulation?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

HakanSeven12 wrote: Tue May 19, 2020 6:37 pm Is there a node for delaunay triangulation?
https://youtu.be/fV-Y8beWCpQ
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: node editor - pyflow

Post by HakanSeven12 »

microelly2 wrote: Wed May 20, 2020 4:44 am
HakanSeven12 wrote: Tue May 19, 2020 6:37 pm Is there a node for delaunay triangulation?
https://youtu.be/fV-Y8beWCpQ
Good :) thanks
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

approximate a curve by a simple bezier curve (4 Poles) with tangent constraints at the endings.
phpBB [video]
User avatar
FreeCutter
Posts: 93
Joined: Mon Aug 26, 2019 5:52 pm
Location: Germany
Contact:

Re: node editor - pyflow

Post by FreeCutter »

This is very, very interesting for me and first of all thanks a lot to microelly2 developing all this and the nice examples/use cases!

I would like to ask about this one:
microelly2 wrote: Wed May 13, 2020 3:41 pm BSpline Surfaces are not developable.
To get a paper model of a terrain I split the surface in stripes, convert them to ruled surfaces and approximate the result by a chain of trinagles.
The result can be printed out, cutted and composed to a 3D paper model.
The last steps can be done by children too.
...
Currently I'm working 'manually' with the work flow shown below (steps 1. to 7.) - and unfortunately this is not FreeCAD rather than SketchUp. Background is the idea of making a shell for a trike bicycle (https://forum.freecadweb.org/viewtopic.php?t=40991) but much more curvy than this one (https://forum.freecadweb.org/viewtopic. ... 49#p351249).

It would be very helpful to do this parameter based as it would give much more and easier control in case of variation.
Would it be possible to have control about the "unfolded" width and height of each triangulated quad by the node editor pyflow?

Thanks for your ideas and support!
Overview Workflow.jpg
Overview Workflow.jpg (66.58 KiB) Viewed 3955 times
FreeCutter
Visit my GitHub profile

Be nice to others! Respect the FreeCAD code of conduct!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

FreeCutter wrote: Thu May 21, 2020 4:59 pm It would be very helpful to do this parameter based as it would give much more and easier control in case of variation.
Would it be possible to have control about the "unfolded" width and height of each triangulated quad by the node editor pyflow?
Yes we can. This is the construction of an offset cell.
I can combine my method with this idea to get such 3d cells: https://youtu.be/-DsEbBIA5-E
thank you for yor example workflow. This kind of cells will make the paper model more stable
User avatar
FreeCutter
Posts: 93
Joined: Mon Aug 26, 2019 5:52 pm
Location: Germany
Contact:

Re: node editor - pyflow

Post by FreeCutter »

Thanks a lot - I started to install according to https://github.com/microelly2/NodeEditor and ... got stuck. :?

So this is my FreeCAD version:

Code: Select all

OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: ee440bea612721e51b5af4c621ce15b1885a6bc0
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
After running the git commands I got init messages in the 'Report view' after starting FreeCAD:

Code: Select all

...
Init:      Initializing /home/mapa/.FreeCAD/Mod/Qt.py(InitGui.py not found)... ignore
Init:      Initializing /home/mapa/.FreeCAD/Mod/PyFlow(InitGui.py not found)... ignore
...
Init:      Initializing /home/mapa/.FreeCAD/Mod/NodeEditor... failed
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 125, in InitApplications
  File "<string>", line 43, in <module>
ModuleNotFoundError: No module named 'blinker'
----------------------------------------------------------------------------------------------------
During initialization the error "No module named 'blinker'" occurred in /home/mapa/.FreeCAD/Mod/NodeEditor/InitGui.py
Please look into the log file for further information
Thus, installed 'binker' by 'pip install blinker' - but during this I got the error 'Failed building wheel for blinker'. However, final message was 'Successfully installed blinker-1.4'. Well, I'm not sure if this is really true.

Restarting FreeCAD still gives the above stated error message about 'No module named 'blinker''.

May you could please help me how to proceed?
FreeCutter
Visit my GitHub profile

Be nice to others! Respect the FreeCAD code of conduct!
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: node editor - pyflow

Post by Syres »

Could it be as simple as:

Code: Select all

pip install wheel
Not sure whether you would then have to run:

Code: Select all

pip install --upgrade blinker
Post Reply