tt-acm / Spectacles.GrasshopperExporter

A Spectacles Exporter for Grasshopper
MIT License
7 stars 12 forks source link

Face <> Color data matching issue #9

Closed mostaphaRoudsari closed 9 years ago

mostaphaRoudsari commented 9 years ago

If I don't graft faces it will take the first color for all mesh faces. image

Here is the file - download and rename to .gh: exportmeshwithcolors

This won't work: image

and also this: image

but this will work which is exporting so many single mesh faces: image

also this line doesn't look right:

matCounter = mesh.Faces.Count = 1; // This is what it is now
matCounter = mesh.Faces.Count - 1; // I assume you want - 1
anagpuyol commented 9 years ago

@mostaphaRoudsari I just had a look at this. You are not using this component the way it's intended to. In the component you have to connect the mesh, and a list of colors per face, like this:

image

Could you give it a try and let me know if it works now for you?

Thanks!

anagpuyol commented 9 years ago

on another note, if what you want is to create separate meshes, then you can use the Lambert Material component and connect the list of faces to the component, and the list of colors to the material component. Again, let me know if this makes it clear for you!

mostaphaRoudsari commented 9 years ago

@anagpuyol as far as I can tell the first image that I uploaded matches your workflow and didn't work.

anagpuyol commented 9 years ago

I can just see now, you have the old version, the new one, has different icons for the scene. Hopefully, the sample file and the new version will make it work like a charm. Let me know how it goes

mostaphaRoudsari commented 9 years ago

It's fixed in the new version. Thanks @anagpuyol.