UserData for mesh face


(Karol Wierzbicki) #1

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?


(Karol Wierzbicki) #2

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


(Dale Fugier) #3

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?


(Karol Wierzbicki) #4

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


(Dale Fugier) #5

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