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

Re: node editor - pyflow

Postby microelly2 » Sun Jul 14, 2019 8:30 pm

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

Re: node editor - pyflow

Postby microelly2 » Mon Jul 15, 2019 4:54 pm

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 401 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 401 times
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Tue Jul 16, 2019 6:18 pm

phpBB [video]

phpBB [video]
User avatar
yorik
Site Admin
Posts: 11377
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: node editor - pyflow

Postby yorik » Wed Jul 17, 2019 1:55 pm

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

Re: node editor - pyflow

Postby microelly2 » Wed Jul 17, 2019 4:14 pm

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

Re: node editor - pyflow

Postby microelly2 » Thu Jul 18, 2019 6:12 pm

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

Re: node editor - pyflow

Postby microelly2 » Mon Jul 22, 2019 9:10 pm

I started to wrap numpy/scipy
cp_008.png
cp_008.png (35.96 KiB) Viewed 211 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
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Wed Jul 24, 2019 2:09 pm

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
Posts: 650
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: node editor - pyflow

Postby bitacovir » Wed Jul 24, 2019 2:57 pm

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)

My Blog
Mini Airflow Tunnel Project
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Thu Jul 25, 2019 5:46 pm

phpBB [video]