compas-dev / compas_view2

Standalone viewer for COMPAS
https://compas.dev/compas_view2/
MIT License
6 stars 8 forks source link

Bug in vertex color #212

Open ZacZhangzhuo opened 8 months ago

ZacZhangzhuo commented 8 months ago

https://github.com/compas-dev/compas_view2/blob/07b86048346a18f83ff77c0209be1be8342b686e/src/compas_view2/objects/meshobject.py#L175-L192

There is likely a bug. If you run:


from compas.datastructures import Mesh
from compas_view2 import app

viewer = app.App()

mesh = Mesh.from_polyhedron(12)

viewer.add(mesh)
viewer.show()

with use_vertex_color enabled, the error will pop up.

This might also affect the viewer.