measure area in UV space?
1682 1 0-
- MathieuLeclaire
- 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?
-
- tamte
- Member
- 9068 posts
- Joined: July 2007
- Offline
MathieuLeclairenot really, it's technically defined by Position attribute, and by default it uses P (so object space)
The measure SOP only work in world 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
FX Supervisor
Method Studios, NY
-
- Quick Links