Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

This forum section is only for IFC-related issues
Post Reply
User avatar
Moult
Posts: 321
Joined: Sat Jan 05, 2019 11:46 am
Contact:

Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by Moult »

I was recently alerted to great work by Joel Graff here (https://github.com/joelgraff/freecad.turns) and here (https://wiki.freecadweb.org/Swept-path_ ... oC_Project)!

Just wondering what the status is on these projects, and the work required to turn the under-the-hood calculations for (initially) swept path analysis into a FreeCAD agnostic library so that we can share the code for the BlenderBIM Add-on :) Similarly, I'd like to integrate this with IfcOpenShell's API in generating valid IFC infrastructure objects, which will benefit both projects too and the wider AEC / OpenBIM community.
Joel_graff wrote: Ping
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by Joel_graff »

Moult wrote: Tue Jun 29, 2021 10:01 am Just wondering what the status is on these projects, and the work required to turn the under-the-hood calculations for (initially) swept path analysis into a FreeCAD agnostic library so that we can share the code for the BlenderBIM Add-on :) Similarly, I'd like to integrate this with IfcOpenShell's API in generating valid IFC infrastructure objects, which will benefit both projects too and the wider AEC / OpenBIM community.
I'm more than happy to help. I really haven't done much with any of the Trails / Turns codebase recently. Life has gotten too busy. I hope I will start getting more time again soon to get back at it. IT also helps to have someone else who has a specific purpose to encourage me to spend time on it. :) I think the code should be generalizable enough. I've worked to keep it as agnostic as possible, to the extent that I don't use any third-party libraries. I implemented my own Python vector math routines that work on tuples, rather than rely on FreeCAD.App.Vector(). It's definitely not as fast, but for the application, it's certainly fast enough. I imagine falling back on a 3rd-party open source Python math library is eventually going to be necessary, though.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by bernd »

do you guys have this in mind ...
An alignment is used to define a reference system to position elements mainly for linear construction works, such as roads, rails, bridges, and others. The relative positioning along the alignment is defined by the linear referencing methodology.

https://standards.buildingsmart.org/IFC ... gnment.htm
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by Joel_graff »

That looks like it would be useful. I presume it's a spline-based implementation, though it may not be. The LandXML specification provides documentation of what's required for transportation engineering horizontal and vertical alignments and, for engineering purposes, mathematical simple, compound, and Euler curve equations need to be used to generate the original curve data points, which I doubt the IFC API directly supports as it is.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by paullee »

Joel_graff wrote: Wed Jun 30, 2021 1:34 pm
Moult wrote: Tue Jun 29, 2021 10:01 am Just wondering what the status is on these projects, and the work required to turn the under-the-hood calculations for (initially) swept path analysis into a FreeCAD agnostic library so that we can share the code for the BlenderBIM Add-on :) Similarly, I'd like to integrate this with IfcOpenShell's API in generating valid IFC infrastructure objects, which will benefit both projects too and the wider AEC / OpenBIM community.
I'm more than happy to help. I really haven't done much with any of the Trails / Turns codebase recently. Life has gotten too busy. I hope I will start getting more time again soon to get back at it. IT also helps to have someone else who has a specific purpose to encourage me to spend time on it. :) ...
Swept path study is always necessary in architectural design :) I remember we had a discussion long time ago, design of car parking lot, internal road, maneovring space for fire engine, refuse collection vehicle etc. Take your time, look forward to the implementation, maybe anyone can help joining the development ?
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by thomas-neemann »

paullee wrote: Wed Jun 30, 2021 10:24 pm
you don't usually need a 3d program for this, but it probably doesn't exist as an open source yet and is very interesting
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Moult
Posts: 321
Joined: Sat Jan 05, 2019 11:46 am
Contact:

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by Moult »

Really exciting! I also see there is freecad.trails. I can bring in some people who are more expert in the alignment aspects in IFC and have implemented the infra extension in IFC. Can we continue the discussion on OSArch, since this is about sharing between FreeCAD and other FOSS projects, of which perhaps only one might be the BlenderBIM Add-on.

https://community.osarch.org/discussion ... ics#latest
I also blog about 3D rendering, architecture, software and other on thinkMoult.com. RSS / Atom feed available for your convenience.
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Shared civil libraries between FreeCAD and the BlenderBIM Add-on and IFC integration

Post by paullee »

Found a link to swept path discussion
Post Reply