compas-dev / compas-dev/compas

Issue visualizing mesh with colors in compas ghpython

Open
#1,002 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
386
Forks
122
Avg merge
11d 46m
Merged PRs (30d)
1

Description

I can't manage to correctly visualize a mesh with colors using compas ghpython in Grasshopper. Using Rhino, the artists work correctly but in ghpython different colors passed to the `draw_faces` or `draw_vertices` do not seem to have an effect. Am I missing something here?

**Expected behavior**
The mesh, mesh faces, and mesh vertices drawn in different colors.

**To Reproduce**
Rhino 7.15
compas 1.14.1

```
import compas_rhino
from compas_ghpython.artists import MeshArtist

rhinomesh = compas_rhino.conversions.RhinoMesh.from_geometry(inputMesh)
compasmesh = rhinomesh.to_compas()

artist = MeshArtist(compasmesh)
a = artist.draw_faces(color=[0, 0, 255], join_faces=True)
b = artist.draw_vertices(color=[0, 255, 0])
c = artist.draw(color=[255, 0, 0])
```

**Screenshots**
![image (1)](https://user-images.githubusercontent.com/33052142/157843531-474d827b-354b-4bec-bc39-9061c56ee8e0.png)

**Desktop (please complete the following information):**
- Windows
- Conda

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.