User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2021-06-07 09:06:26

davidz
User
Registered: 2016-02-01
Posts: 16

BASEmesh - Error - StopIteration

Hi everyone

I tried to generate an elevation mesh out of a few 3D-Points and got the Error below.
I have transformed de 2D-points to 3D-Datapoints with the tool in the QGIS processing toolbox as explaind in the User Manual for v2.0.

I use QGIS 3.16.4.

Is there a Bug in my Data or is it in the Basemesh?
Thanks for your help.


Traceback (most recent call last):
  File "C:/Users/dz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\basemesh\plugin\gui\worker.py", line 88, in run
    value = self.target(self.feedback, *self.args, **self.kwargs)
  File "C:/Users/dz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\basemesh\plugin\gui\elevmesh.py", line 251, in worker
    mesh.save(filename, num_materials=0)
  File "C:/Users/dz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\basemesh\core\mesh.py", line 886, in save
    num_materials = len(next(iter(self.elements)).materials)
StopIteration

Last edited by davidz (2021-06-07 09:06:57)

Offline

#2 2021-06-14 11:44:06

Matteo Facchini
Developer
From: Trento
Registered: 2014-09-05
Posts: 278

Re: BASEmesh - Error - StopIteration

Hi david
it looks to me as if there is a problem in the definition of the material indexes in your quality mesh. How did you generate the quality 2dm?
Best
Matteo

Offline

#3 2021-06-14 12:30:32

davidz
User
Registered: 2016-02-01
Posts: 16

Re: BASEmesh - Error - StopIteration

Hi Matteo

There isn't a Quality Mesh so far.

I just tried to generate a elevation-mesh out of the 3D-points with the "Elevation meshing"-Tool.

Afterwards I wanted to try the interpolation with a small elevation-mesh and additional raster-data.
But the meshing of the 3D-points didn't work.

David

Offline

#4 2021-06-15 08:18:06

Matteo Facchini
Developer
From: Trento
Registered: 2014-09-05
Posts: 278

Re: BASEmesh - Error - StopIteration

Sorry, david. I got it all wrong.
I have no experience with the elevation meshing tool, but I see that it requires for segments?
Try to use a geopackage layer where features are SingleLine and that includes the Z coordinate.
Best

Offline

Board footer

Powered by FluxBB