Civil engineering feature implementation (Transportation Engineering)

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
Joel_graff
Posts: 1851
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Tue Oct 27, 2020 2:56 pm

Just a note, I've done significant restructuring of the Trails codebase, just to improve code organization.

I've tested several functions and things seem to be working fine. If there are issues, please report them.
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
thschrader
Posts: 1908
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Civil engineering feature implementation (Transportation Engineering)

Postby thschrader » Tue Oct 27, 2020 4:46 pm

Updated trails-wb, pivy-tracker, python-support.
Import works, meshing point-cloud works, no error reports.
(the ears need a little more love...)
Thanks :)

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git)
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
bunny_surface.JPG
bunny_surface.JPG (52.09 KiB) Viewed 280 times

EDIT:
bunny point-cloud meshed with CloudCompare. I think trails does a good job...
mesh_comparison.JPG
mesh_comparison.JPG (21.18 KiB) Viewed 280 times
Last edited by thschrader on Tue Oct 27, 2020 4:57 pm, edited 1 time in total.
User avatar
HakanSeven12
Posts: 930
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Tue Oct 27, 2020 4:54 pm

You are welcome ;)
thschrader wrote:
Tue Oct 27, 2020 4:46 pm
EDIT:
bunny point-cloud meshed with CloudCompare. I think trails does a good job...
mesh_comparison.JPG
The other programs apply interpolation. Some times it causes more distortion on model.
Joel_graff wrote:
Tue Oct 27, 2020 2:56 pm
Just a note, I've done significant restructuring of the Trails codebase, just to improve code organization.
Maybe i can create a repo for Geomatics and you can add it as a submodule. Or we can use it as you did. What are you thinking about that?
thschrader
Posts: 1908
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Civil engineering feature implementation (Transportation Engineering)

Postby thschrader » Tue Oct 27, 2020 5:13 pm

Aaaah....cool!
LIDAR_geodata.JPG
LIDAR_geodata.JPG (205.67 KiB) Viewed 271 times
User avatar
HakanSeven12
Posts: 930
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Tue Oct 27, 2020 5:25 pm

Looks good
User avatar
Joel_graff
Posts: 1851
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Tue Oct 27, 2020 7:03 pm

HakanSeven12 wrote:
Tue Oct 27, 2020 4:54 pm
Maybe i can create a repo for Geomatics and you can add it as a submodule. Or we can use it as you did. What are you thinking about that?
I don't know that I have any great opinion on that. I'm using submodules so I can maintain code I use in other projects separately (like pivy_trackers).

The only issue with pulling geomatics out is that you rely on code that's part of the horizontal design portion of trails.

It may be better that they're maintained as separate repos (and maybe workbenches), but at this point I don't see a reason to bother unless you really feel compelled to do something.
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
HakanSeven12
Posts: 930
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Tue Oct 27, 2020 7:17 pm

You are right. We don't need to separate them.
User avatar
HakanSeven12
Posts: 930
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Thu Oct 29, 2020 7:17 pm

Joel_graff wrote:
Tue Oct 27, 2020 7:03 pm
Why you don't create a new thread for turns wb?
User avatar
Joel_graff
Posts: 1851
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Thu Oct 29, 2020 7:24 pm

HakanSeven12 wrote:
Thu Oct 29, 2020 7:17 pm
Why you don't create a new thread for turns wb?
Right now, it's badly broken and not going anywhere, lol. Though I'm actually working on it at the moment to see if I can get things patched together. I haven't touched the code in nine months.

I might start a thread if I can get some time spent working on it, 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
y_skific
Posts: 8
Joined: Mon Oct 19, 2020 4:56 pm
Location: France

Re: Civil engineering feature implementation (Transportation Engineering)

Postby y_skific » Sat Oct 31, 2020 9:19 am

Joel_graff wrote:
Sat Oct 24, 2020 2:22 pm

I'll take a closer look at what you developed. I've really only developed things just enough to work for my purposes, so I've no doubt there's a number of shortcomings. Always happy to have additional help, though I think this task might be a bit daunting for most folks to get involved. :)

All the same, whatever you feel like contributing,, I'm certainly open to it.
I have that code written in managed c# at the moment, i'll give a try to port it to a c++ dll.
I'm not sure of the success, because i'm quiet a newbie in c++.
I'll get back to you when i reach a first usable library, it might take some time ....