15 Commits

Author SHA1 Message Date
KatKatKateryna 22176c8b8f Merge branch 'dev' into polishing_more
flake8 / flake8_py3 (push) Has been cancelled
2024-09-05 14:31:05 +01:00
KatKatKateryna 60c41dc76f double-check for display vals 2024-09-05 14:29:01 +01:00
KatKatKateryna 2900046d14 Merge branch 'dev' into polishing_more 2024-09-04 23:51:50 +01:00
KatKatKateryna f35cf4122f html syntax 2024-09-04 23:41:20 +01:00
KatKatKateryna 3b7877a0bf leaflet controls to the right 2024-09-04 23:30:44 +01:00
KatKatKateryna ab9df29ae4 add bbox per feature 2024-09-04 23:06:08 +01:00
KatKatKateryna 22968f0749 URL exceptions handling 2024-09-04 22:49:14 +01:00
KatKatKateryna ee37ca89e2 avoid multiple loops 2024-09-04 16:08:47 +01:00
KatKatKateryna 4e867c86d8 ensure speckleURL argument 2024-09-04 16:04:45 +01:00
KatKatKateryna 6d425d4212 split polygons in leaflet 2024-09-04 15:11:19 +01:00
KatKatKateryna b2c4498419 fix multipolygons 2024-09-04 14:17:15 +01:00
KatKatKateryna 3d83276498 prioritize attributes by default, less geometry divisions 2024-09-04 13:52:15 +01:00
KatKatKateryna c83f87425a fix multipolygons in 3d 2024-09-04 13:51:41 +01:00
KatKatKateryna eb381bdd2f traverse for colors 2024-09-04 11:32:11 +01:00
KatKatKateryna 93e0cd5792 colors and materials 2024-09-04 04:19:51 +01:00
@@ -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)