Extra check (#10)

* colors and materials

* traverse for colors

* fix multipolygons in 3d

* prioritize attributes by default, less geometry divisions

* fix multipolygons

* split polygons in leaflet

* ensure speckleURL argument

* avoid multiple loops

* URL exceptions handling

* add bbox per feature

* leaflet controls to the right

* html syntax

* double-check for display vals
This commit is contained in:
KatKatKateryna
2024-09-05 14:31:22 +01:00
committed by GitHub
parent 6a8b5df87c
commit a20daffc4b
@@ -165,11 +165,11 @@ def get_single_display_object(displayValForColor: List) -> "Base":
except IndexError:
break
elif item is not None:
displayValForColor = item
return item
mesh = Mesh.create(faces= faces, vertices=verts, colors=colors)
if len(displayValForColor)>0:
if isinstance(displayValForColor, List) and len(displayValForColor)>0:
for prop in displayValForColor[0].get_member_names():
if prop not in ["colors", "vertices", "faces"]:
mesh[prop] = getattr(displayValForColor[0], prop)