Generative Design with FreeCAD

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
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: Generative Design with FreeCAD

Post by j8sr0230 »

Hi,
I have put everything into a clean repo with installation instructions. Development of new nodes will continue here:
https://github.com/j8sr0230/fc_nodes
Codelink on GitHub: https://github.com/j8sr0230/codelink
Codelink on PiPy: https://pypi.org/project/codelink/
FreeCAD Nodes Workbench on GitHub: https://github.com/j8sr0230/Nodes
User avatar
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: Generative Design with FreeCAD

Post by j8sr0230 »

Hi there,
I think I now have a pretty solid basic framework for the node editor. You can find the module fcn_base_node.py for a base node in my repository https://github.com/j8sr0230/fc_nodes. I tried to document this module as much as possible with docstrings, comments and type hints. Based on this I implemented the first three nodes NumberInput, NumberSlider and ScalarMath, that work with numbers (int or float). Numbers use orange sockets, as you can see in the picture. Different socket types (colors) cannot be mixed. Sockets have standard input widgets prepared by me (e.g. QLineEdit, QSlider, QComboBox, ..), that can be easily included.
FreeCAD Nodes
FreeCAD Nodes
2022-09-01_fc_nodes.PNG (228.21 KiB) Viewed 804 times
My intention is to publish a RoadMap in a timely manner so that other developers can contribute to the implementation of new nodes.
So far for today,

see you soon, j8sr0230.
Codelink on GitHub: https://github.com/j8sr0230/codelink
Codelink on PiPy: https://pypi.org/project/codelink/
FreeCAD Nodes Workbench on GitHub: https://github.com/j8sr0230/Nodes
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Generative Design with FreeCAD

Post by Kunda1 »

Excellent news! BTW, @j8sr0230 is this still generative design related? It seems like it could be a separate thread.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply