Crossbeam exercise

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
GlouGlou
Posts: 1730
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Crossbeam exercise

Postby GlouGlou » Thu Jul 18, 2019 9:13 pm

First step something looks like. not so easy without fillet feature for surface.
and offset doesn't want work. :roll:
Attachments
crossbeam.FCStd
(528.97 KiB) Downloaded 8 times
Capture.JPG
Capture.JPG (19.69 KiB) Viewed 472 times
User avatar
saso
Posts: 1337
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Crossbeam exercise

Postby saso » Thu Jul 18, 2019 10:42 pm

Thanks for the main curves and your model :) I quickly played a bit with it and got a bit further... but not the best workflow :?
Attachments
SharedScreenshot.jpg
SharedScreenshot.jpg (15.97 KiB) Viewed 453 times
User avatar
microelly2
Posts: 4454
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Crossbeam exercise

Postby microelly2 » Fri Jul 19, 2019 8:20 pm

cp_005.png
cp_005.png (140.86 KiB) Viewed 394 times
Here is the pyflow graph for the first surface.
The idea was starting with 9 points create some helper poles and then build the poles matrix for the bspline surface.
cp_006.png
cp_006.png (338.07 KiB) Viewed 394 times
bb.FCStd
(29.8 KiB) Downloaded 11 times
User avatar
microelly2
Posts: 4454
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Crossbeam exercise

Postby microelly2 » Sat Jul 20, 2019 3:36 pm

here my solution for the 2nd task:pad something onto a nonplanar surface.
I have problems with fillet and chamfer on bspline surfaces, so for rounded edges its need some more tricks and a little bit of time.
I made two new nodes
FreeCAD UV projection uses methods from the nurbs workbench - draw on face it uses the parameter method of a Bspline Surface.
FreeCAD Parallel projection uses the makeParallelProjection method of a Face
Other projection methods may come later.

phpBB [video]
User avatar
Kunda1
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Crossbeam exercise

Postby Kunda1 » Sat Jul 20, 2019 4:00 pm

microelly2 wrote:
Sat Jul 20, 2019 3:36 pm
This is next level stuff! Nice!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
GlouGlou
Posts: 1730
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Crossbeam exercise

Postby GlouGlou » Sat Jul 20, 2019 4:20 pm

microelly2 wrote:
Fri Jul 19, 2019 8:20 pm
and then build the poles matrix for the bspline surface.
which tool you use to make the surface?
User avatar
microelly2
Posts: 4454
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Crossbeam exercise

Postby microelly2 » Sat Jul 20, 2019 5:14 pm

GlouGlou wrote:
Sat Jul 20, 2019 4:20 pm
microelly2 wrote:
Fri Jul 19, 2019 8:20 pm
and then build the poles matrix for the bspline surface.
which tool you use to make the surface?
you can inspect the code
the whole workflow is scripted in crossbeamexample()
https://github.com/microelly2/NodeEdito ... L830-L1110
https://github.com/microelly2/NodeEdito ... #L840-L866
and the real code is still swapped to
https://github.com/microelly2/NodeEdito ... #L144-L180

lines will change with next commit :roll:
User avatar
microelly2
Posts: 4454
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Crossbeam exercise

Postby microelly2 » Sat Jul 20, 2019 5:28 pm

Kunda1 wrote:
Sat Jul 20, 2019 4:00 pm
This is next level stuff! Nice!
I watched sverchok for years, but it was not possible to port it to freecad in freetime:
With Pyflow we have the ability get comparable design power.
praise ilgar and pedro who gave us this wounderful framework.
User avatar
GlouGlou
Posts: 1730
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Crossbeam exercise

Postby GlouGlou » Wed Jul 24, 2019 7:45 pm

after spent few hours, step2. :D
Attachments
Capture.JPG
Capture.JPG (33.88 KiB) Viewed 207 times