Trails Workbench (Transportation and Earthwork Workbench)

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
HakanSeven12
Posts: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by HakanSeven12 » Fri Nov 13, 2020 8:47 am

HakanSeven12 wrote:
Fri Nov 13, 2020 8:37 am
I implamented the contours in new surface object. Contour interval option added to data properties.

contours.png
You can see how it's works in video.

phpBB [video]

User avatar
Joel_graff
Posts: 1879
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by Joel_graff » Fri Nov 13, 2020 1:13 pm

HakanSeven12 wrote:
Fri Nov 13, 2020 8:47 am
You can see how it's works in video.
You need to figure out how to make GIFs. Then I could use it in my presentations. :) It looks great!

(Honestly, though, I never could figure out a good way to do it in Windows.)
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: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by HakanSeven12 » Fri Nov 13, 2020 1:17 pm

Thanks 🙂 you can use this app for gif https://www.screentogif.com/

Also can you use SoGeo nodes for your alignments?

I did it for point groups and surfaces. I will do it for guidelines too. But firstly you need to do it for your alignments.

User avatar
Joel_graff
Posts: 1879
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by Joel_graff » Fri Nov 13, 2020 7:14 pm

HakanSeven12 wrote:
Fri Nov 13, 2020 1:17 pm
I did it for point groups and surfaces. I will do it for guidelines too. But firstly you need to do it for your alignments.
I've been working to reimplement pivy_trackers... it's been a long, slow process. I'm going through and cleaning up the code base a bit.

I tried to implement SoGeo nodes, but didn't have much luck - something wrong with the way I handled it. There needs to be a common tree heirarcy for the SoGeoOrigin as there can only be one in the tree. So I think as long as we can establish a common SoGroup (I might suggest a Switch-Separator pair) that lives at the top of the scene graph where we do all of our work, it shouldn't matter.
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: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by HakanSeven12 » Fri Nov 13, 2020 8:06 pm

Joel_graff wrote:
Fri Nov 13, 2020 7:14 pm
.There needs to be a common tree heirarcy for the SoGeoOrigin as there can only be one in the tree.
I just using this code for SoGeoOrigin. İt's working good for me. Then I just create a SoGeoSeparator in attach function and add all nodes in it and using SoGeoCoordinate for points.

SoGeoOrigin:
https://github.com/joelgraff/freecad.tr ... tils.py#L8

Attach:
https://github.com/joelgraff/freecad.tr ... up.py#L114

User avatar
Joel_graff
Posts: 1879
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by Joel_graff » Fri Nov 13, 2020 11:48 pm

HakanSeven12 wrote:
Fri Nov 13, 2020 8:06 pm
I just using this code for SoGeoOrigin. İt's working good for me. Then I just create a SoGeoSeparator in attach function and add all nodes in it and using SoGeoCoordinate for points.
Ok. I'll try to take a look next week and see if I can figure out a structure.
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


ajoeiam
Posts: 147
Joined: Sun Mar 03, 2019 9:36 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by ajoeiam » Sat Nov 14, 2020 2:07 pm

OS: Debian GNU/Linux bullseye/sid (LXQt/lightdm-xsession)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22894 (Git) AppImage
Build type: Release
Branch: master
Hash: 9eb080488d970d313c538473e7272117ea0a7cd1
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0


Hope this is an acceptable place to ask the questions.

Read in a recent note on here that installing the trails wb using the add on manager is now deprecated.
So I removed the add on manager version and started installing the bits to get a working trails wb.

(looking right now the trails wb is listed as alpha - - - is that alpha of the newest iteration or ???)

Git clone and parked that in .FreeCAD/Mod/ .
Wanted to also install cv2, gdal etc in the FreeCAD/Ext folder (as was suggested).
Tried install the python version of gdal using pip - - no joy.
Tried using a tarball version - - - downloaded from Debian - - - also no joy.

Am I pushing the curve here (just wait) or is there a better way to achieve installation of the packages for geodata functions?

TIA

User avatar
HakanSeven12
Posts: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by HakanSeven12 » Sat Nov 14, 2020 2:51 pm

Just install it by using git. That's enough for import osm.

ajoeiam
Posts: 147
Joined: Sun Mar 03, 2019 9:36 pm

Re: Trails Workbench (Transportation and Earthwork Workbench)

Post by ajoeiam » Sat Nov 14, 2020 5:48 pm

HakanSeven12 wrote:
Sat Nov 14, 2020 2:51 pm
Just install it by using git. That's enough for import osm.
OK - - - trails wb is installed. (Using git.)

How do I install cv2, gdal, gdalconst, urllib, chardet, certifi, idna - - - please?

Post Reply