Grasshopper

algorithmic modeling for Rhino

Hi,

I have created an arraylist of mesh faces in a vb module and I am looking into assigning different colors to each list within the array list. I don't seem to be able to find the function for colour assignments. Any tips/ pointers?

Thanks!

Regards,

CK

Views: 299

Replies to This Discussion

Hi CK,

mesh faces do not support colours, only mesh vertices do. So if you want to colour mesh faces, you have to first make sure that all edges are unwelded. This means that a single vertex is only ever used for one face. then you iterate over all your mesh faces, find all the vertices, and colour those.

Also, ArrayList is not a good idea. It's a relic class from back when .NET did not support generics. Either use straight up arrays, or List(Of T).

David,

Thanks for the swift reply.

What I have done so far is writing a script that categorize and typify panels according to their edge lengths and angles. The same colour would be assigned to the same panel type. Do you happen to know any plug-in's/ components that could do just that?

Thanks!

CK

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service