compas-dev / compas_view2

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

use_vertex_color #156

Closed Licini closed 2 years ago

Licini commented 2 years ago

Allow something like this to show vertex color with interpolation in faces. #134

for vertex in mesh.vertices():
    mesh.vertex_attribute(vertex, 'color', Color.from_i(random()))

viewer.add(mesh, use_vertex_color=True)
image