[HOM]: vertex attributes data collector trik?

   1991   1   0
User Avatar
Member
77 posts
Joined: April 2009
Offline
Hi!

What will be better for vertex data collection:

1. Iterate through all vertices of mesh.

OR:

2. a) Facet SOP with “Unique Points” option On.
b) Attribute Promote SOP with all vertices attributes promoted to points.
c) Collect the data as hou.Geometry.pointFloatAttribValues(attr.name())

UPD: I see one only problem here - point order are edifferent from source vertices order…

So, what do you think?

Thank you in advance!
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
I'd probably just iterate over all the prims/verts and get the info, especially since the other method is just going to give you unpredictable ordering. Though depending on what exactly you want to do with that data it might work out fine.

Another approach I'd consider is using inlinecpp to do the getting and analysis if speed was really an issue. It most likely would perform better.
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links