measure area in UV space?

   Views 1682   Replies 1   Subscribers 0
User Avatar
Member
79 posts
Joined: Feb. 2008
Offline
Any suggestions on how to measure area occupied in UV space? The measure SOP only work in world space. I'm leading towards writing an attribute wrangle to extract vertex uv positions per primitive and split it into triangles and sum the area of each triangle by finding min and max values of their UV positions (uvarea = (Xmax - Xmin) * (Ymax - Ymin) /2)… but I'm wondering if there might already exist something to do this instead of coding my own wrangle?
User Avatar
Member
9068 posts
Joined: July 2007
Offline
MathieuLeclaire
The measure SOP only work in world space
not really, it's technically defined by Position attribute, and by default it uses P (so object space)

you can use uv as a Position Attribute on Measure SOP, that will compute area in uv space
Edited by tamte - Jan. 30, 2020 19:14:07
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links