Delaunay triangulation example - unable to add mesh to document

Hello,

I have successfully installed COMPAS in Rhino 6 (SR 13), following the instructions in https://compas-dev.github.io/main/environments/rhino.html (it probably won’t hurt to specify there that you need to run the command prompt with administrator privileges to install the package).

When I try to execute the Delaunay triangulation with boundary example (I just copy-pasted the script in the Rhino Pyhon editor to avoid mistyping) I get this message from the Rhino Python Editor:

Message: unable to add mesh to document

Traceback:
  line 94, in wrapper, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_rhino\utilities\drawing.py"
  line 509, in draw_faces, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_rhino\utilities\drawing.py"
  line 94, in wrapper, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_rhino\utilities\drawing.py"
  line 78, in AddMesh, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\mesh.py"
  line 475, in draw_mesh, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_rhino\utilities\drawing.py"
  line 130, in draw_faces, "C:\Users\Alessio\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_rhino\artists\mixins\faceartist.py"
  line 41, in <module>, "C:\Users\Alessio\AppData\Local\Temp\TempScript.py"

When I checked my IronPython version with sys.version_info I got this message:

sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=1)

Do you have any idea of the reason why and might suggest potential fixes?

Thank you very much in advance,

Alessio

hi,

you are correct, the example does not seem to work in Rhino 6. there seems to be a difference between Rhino 5 and Rhino 6 when it comes to meshes that i don’t know about…

would you mind adding it as an issue to the github repo so we can follow up properly?

thanks!
tom

found the problem and released a new version (0.6.2). to upgrade your COMPAS installation do

conda install COMPAS=0.6.2

i have also updated the example slightly…

let me know if you still have problems!

After the update the example works, thank you very much Tom!

Do you still need me to add the issue on GitHub (I suppose not)?

no need, the issue is resolved…