FreeCAD Trails Workbench (Transportation and Geomatics)

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

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by HakanSeven12 »

Vincent B wrote: Thu Aug 04, 2022 6:04 pm Hi,
how to delete some terrain triangle?
Select the terrain. Click to the "delete triangle" option. Select the faces that you want to remove then press to R button on keyboard.
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by Vincent B »

I'm trying to delete these triangles, but can't do. :roll:
https://download.gg/fr/file-14022678_9fc022ade3959259
Attachments
Capture.JPG
Capture.JPG (20.97 KiB) Viewed 1777 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by HakanSeven12 »

I tried too. Its looks like something broken with pivy.

Code: Select all

22:55:11 < class ' SystemError " > 
22:55:11 Traceback ( most recent call last ) : 
22:55:11 File " /home/hakanseven/var/app/org.freecadweb.FreeCAD/data/FreeCAD/Mod/Trails/./Trails/guitools/gui_terrain_editor.py " , line 227 , in delete 
22:55:11 face_detail = coin.cast ( 
22:55:11 SystemError : < built - in function cast > returned NULL without setting an error
This code code was working at 0.19 but its broken now.

For a workaround you can set the max length to 5 to remove these triangles.
lobz
Posts: 4
Joined: Tue Feb 07, 2023 1:40 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by lobz »

Hi,

I'm fairly new to FreeCAD or any other CAD program. I successfully imported my points with Trails and the surface creation was also successful, contour lines are also visible.

What I'm trying to achieve is:
- showing the surface/terrain with contour lines on a TechDraw view, with elevation data if possible
- using the surface as a terrain for Arch Site and to be able to do volume addition/subtractions.

I tried inserting a view on the TechDraw WB with Insert View, but nothing the surface does not show up, only my test box solid.

With Arch Site, I added the surface to the Site as terrain but the volume addition/subtraction buttons are disabled. I don't know if it's because the surface is not suitable for Site or for some other reason.

Do you have any suggestions?
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by Roy_043 »

To add to an Arch_Site:
  1. Double-click the Site object.
  2. Select the object you want to add.
  3. Select the "Additions" folder in the task panel.
  4. Press the "+ Add" button (which should now be enabled).
lobz
Posts: 4
Joined: Tue Feb 07, 2023 1:40 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by lobz »

Thanks for the tip! I could now add the box to the site, but it seems to me the subtraction itself does nothing. Maybe the surface has to be converted to something else?

Screenshot from 2023-02-07 18-41-50.png
Screenshot from 2023-02-07 18-41-50.png (139.85 KiB) Viewed 1050 times
Roy_043 wrote: Tue Feb 07, 2023 4:23 pm To add to an Arch_Site:
  1. Double-click the Site object.
  2. Select the object you want to add.
  3. Select the "Additions" folder in the task panel.
  4. Press the "+ Add" button (which should now be enabled).
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by Roy_043 »

I do not know the Trails Workbench. Can you post your file?
lobz
Posts: 4
Joined: Tue Feb 07, 2023 1:40 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by lobz »

Hi, sure.

I'm using FreeCAD 0.20.2 appimage with the Trails release available on Github: https://github.com/joelgraff/freecad.tr ... 02.07.2021
Roy_043 wrote: Tue Feb 07, 2023 9:39 pm I do not know the Trails Workbench. Can you post your file?
Attachments
szirt-terrain.FCStd
(30.21 KiB) Downloaded 37 times
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: FreeCAD Trails Workbench (Transportation and Geomatics)

Post by Roy_043 »

The Terrain object must have a Shape, the Surface object in the file does not have that. You can convert it with the code below.

Code: Select all

import Part

doc = App.ActiveDocument
obj = doc.getObject("Surface")

new = doc.addObject("Part::Feature", "SurfaceShape")
shape = Part.Shape()
shape.makeShapeFromMesh(obj.Mesh.Topology, 0.1)
new.Shape = shape

doc.recompute()
Post Reply