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

Re: node editor - pyflow

Post by microelly2 »

I wonder which properties of FreeCAD object are realy used and should be implemented in PyFlow?
bp_999(001).png
bp_999(001).png (220.4 KiB) Viewed 1954 times
My idea is to have for each property a connection to the real FreeCAD object property as an input pin (the change of the pin updates the property of the freecad object) and an output pin for the use of this datum.
Some types are not really clear for me.
example: what is the difference between an vector, a direction, a position and a vector distance?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

There are some useful methods for array(list) support, so the properties VectorList, StringList, BoolList, IntList can be mapped to PyFlow Arrays.
bp_999(002).png
bp_999(002).png (34.16 KiB) Viewed 1909 times
In the video I demonstrate how easy it is to use vector lists example for polygons.
phpBB [video]

here the list of available FreeCAD propoerties in PyFlow
cp_001.png
cp_001.png (52.11 KiB) Viewed 1909 times
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]

phpBB [video]
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: node editor - pyflow

Post by yorik »

Amazing progresses @microelly2 ! On our way to a FreeCAD grasshopper!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

get the information about a shape using the pins of the part explorer node
phpBB [video]

my idea is to add all the nice functions of numpy to the nodeeditor
here the first step create two value lists and plot them
phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

I started to wrap numpy/scipy
cp_008.png
cp_008.png (35.96 KiB) Viewed 1719 times
Do we want to use the "same" symbols and nodes like grasshopper?
I think that simiular symbols make it easier to apply tutorial from grasshopper to Pyflow,
but there are still copyright cliffs.

phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

The reference node connects cad object from FreeCAD (Shapes, Edges, Faces) to output pins in pyflow. They are the importers to make FreeCAD data reusable.
The view3d node goes the way back. it creates a visualization of a shape in FreeCAD and creates a FreeCAD object which can postprocessed with classical FreeCAD methods or exported etc.
We habe a discussion about naming of this node type, so the concept may change again
see here:
https://forum.freecadweb.org/viewtopic.php?f=13&t=37914
https://forum.freecadweb.org/viewtopic.php?f=8&t=37912
in my video today I demonstrate the level of detail node. The idea is to have the possibility to switch between different representations of the "same" object on demand. example use cases are landscape, bolt, hole plate. In the example I only use cube, sphere and cone as placeholder for more complex shapes. For pointclouds and bspline surfaces I have a lot of algorithms to get simplified models, these methods will come soon.
phpBB [video]
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: node editor - pyflow

Post by bitacovir »

microelly2 wrote: Mon Jul 22, 2019 9:10 pm Do we want to use the "same" symbols and nodes like grasshopper?
Some symbols can be very generic, and easy to understand. But if there is a copyright, you should be using your own design and colors for the graphical representation. The idea is to make your work something with long life, rather than something to replicate grasshopper tutorials.
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]
Post Reply