Select the terrain. Click to the "delete triangle" option. Select the faces that you want to remove then press to R button on keyboard.
FreeCAD Trails Workbench (Transportation and Geomatics)
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
I'm trying to delete these triangles, but can't do.
https://download.gg/fr/file-14022678_9fc022ade3959259
https://download.gg/fr/file-14022678_9fc022ade3959259
- Attachments
-
- Capture.JPG (20.97 KiB) Viewed 1906 times
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
I tried too. Its looks like something broken with pivy.
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.
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
For a workaround you can set the max length to 5 to remove these triangles.
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
The bug fixed with new pivy 0.6.8 release.
https://github.com/coin3d/pivy/pull/99
https://github.com/coin3d/pivy/releases/tag/0.6.8
https://github.com/coin3d/pivy/pull/99
https://github.com/coin3d/pivy/releases/tag/0.6.8
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
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?
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?
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
To add to an Arch_Site:
- Double-click the Site object.
- Select the object you want to add.
- Select the "Additions" folder in the task panel.
- Press the "+ Add" button (which should now be enabled).
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
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?
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
I do not know the Trails Workbench. Can you post your file?
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
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
I'm using FreeCAD 0.20.2 appimage with the Trails release available on Github: https://github.com/joelgraff/freecad.tr ... 02.07.2021
- Attachments
-
- szirt-terrain.FCStd
- (30.21 KiB) Downloaded 41 times
Re: FreeCAD Trails Workbench (Transportation and Geomatics)
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()