dont crash if zero vertices are to build in _build_vertex_values
This commit is contained in:
parent
a66692f771
commit
9a80c2d38b
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,8 @@ class LevelGeometries:
|
||||||
Interpolate vertice with known altitudes to get altitudes for the remaining ones.
|
Interpolate vertice with known altitudes to get altitudes for the remaining ones.
|
||||||
"""
|
"""
|
||||||
vertex_values = np.empty(self.vertices.shape[:1], dtype=np.int32)
|
vertex_values = np.empty(self.vertices.shape[:1], dtype=np.int32)
|
||||||
|
if not vertex_values.size:
|
||||||
|
return vertex_values
|
||||||
vertex_value_mask = np.full(self.vertices.shape[:1], fill_value=False, dtype=np.bool)
|
vertex_value_mask = np.full(self.vertices.shape[:1], fill_value=False, dtype=np.bool)
|
||||||
|
|
||||||
for item in items:
|
for item in items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue