FreeCAD Nodes (renamed from fc_nodes)

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

drmacro wrote: Tue Dec 06, 2022 6:46 pm Creating a new document if none exists would probably be good. Or maybe offering it to the user...they may not want nodes popping up their existing work.
BTW, this is a handy setup to let FreeCAD create always a new document on start up.
New doc on start
New doc on start
freecad_pref.PNG (51.62 KiB) Viewed 2984 times
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
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by drmacro »

But, it doesn't help if you have just closed all the open documents and select the Nodes workbench, Nodes icon, and File>Open throws errors when a json file is opened with nothing but a lot of errors in the report view. ;)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

Hi Friends,
the new Fillet Surface node is available in the latest update. This node implements the Part.makeFillet method to create a fillet surface from edges and additional support shapes. The figure shows surfaces created from Voronoi edges and additional support points aligned normal to the Voronoi surfaces. The pure joy of visual scripting :D
Have fun with it!
fillet_surface_node
fillet_surface_node
fillet_surface.PNG (769.14 KiB) Viewed 2929 times
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
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by drmacro »

If there are 2 documents open, how do you tell nodes which to write to?

Edit: I think I see that the active node window writes to the active 3d View/Tree.

But, is it possible to select the document from a node graph?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

Hi Friends,
I got an interesting questions today in the FreeCAD Nodes repository on how to arrange balls in a ball bearing for any number of balls equally distributed on the circumference (see https://github.com/j8sr0230/Nodes/issues/119). FreeCAD Nodes is still in its early days, but already has the tools to do this little task fancy. Attached is my node graph as an answer to this question for you to follow along. The core of the solution is the Discretize node, which can be used to discretize curves into sections of equal length. The appropriate length is given by the circumference of the circle. Have fun with the following :D
Bearing
Bearing
parametric_bearing.gif (812.44 KiB) Viewed 2829 times
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: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

drmacro wrote: Wed Dec 07, 2022 3:37 pm If there are 2 documents open, how do you tell nodes which to write to?

Edit: I think I see that the active node window writes to the active 3d View/Tree. [...]
You're absolutely right about that. The Visualizer nodes render into the currently active document. An explicit selection of the FreeCAD document is currently not implemented.
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: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

Hi friends,
the Extrude node has got a new friend, the Loft node. It implements the Part.makeLoft method and is suitable to create a solid or a surface by lofting any number of cross sections. Attached is a little inspiration where I use the Loft node to mimic a tapered extrusion. Starting from a cube, I create a tapered extrusion on each face. After iteratively repeating this operation three times, this beautiful abstract construction is created. I wish you a lot of fun with it!
Yours j8sr0230
Iterative loft viewport
Iterative loft viewport
nodes_iterative_loft_viewport.PNG (517.62 KiB) Viewed 2503 times
Iterative loft graph
Iterative loft graph
nodes_iterative_loft_graph.PNG (224.1 KiB) Viewed 2503 times
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
spanner888
Posts: 326
Joined: Tue May 28, 2019 10:51 am

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by spanner888 »

Another very nice addition to Nodes.

It makes me ask do you have any type of loop control node on the TODO list?
User avatar
j8sr0230
Posts: 140
Joined: Thu Apr 07, 2022 8:59 am
Location: Chemnitz
Contact:

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by j8sr0230 »

Hi friends,
the latest update adds Helix, Plane, Cylinder, Cone and Torus primitives to the Nodes Workbench. Multi edge input and array broadcasting is enabled for all sockets.
Have fun with it!
New primitive nodes
New primitive nodes
new_primitives.PNG (371.64 KiB) Viewed 2349 times
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
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: FreeCAD Nodes (renamed from fc_nodes)

Post by drmacro »

Has there been any documentation created or added to the gihub?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply