UserData for mesh face

Hi,

Anybody have idea how to apply my data to specific mesh faces? I can do it for whole mesh with use of SetUserString or mesh.UserData, but how to do it for specific faces? Or maybe how to get face guid?

OK, I think I have this one. I need to get RuntimeSerialNumber.

You cannot store user data on a mesh face, or ON_MeshFace, as user data can only be stored on class objects that are derived from ON_Object. But, you can store user data on the mesh itself, or ON_Mesh.

Does this help?

I was afraid there is no easy way. Is there an way to get unique data for single face? Maybe uuid?

Sorry, no. An ON_MeshFace is a pretty lightweight class, just holding on to its vertex indices.