I see. I'm using same type of operation for my sections. You are using shape for your terrains and I'm using mesh. So maybe you can convert your terrain to mesh and take a look my section code. I think it will works faster than your method. IMHO you can directly use Trails terrains for your operations. But choice is yours.
https://github.com/HakanSeven12/Trails/ ... ons.py#L83
Creating a new workbench for photovoltaic
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: Creating a new workbench for photovoltaic
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