I've seen these UVs referred to as intrinsic primitive UVs, parametric UVs or implicit UVs in different places in the documentation.
I want to write the parametric UVs to a vertex attribute in houdini. I've tried doing this with vex but the solution is clumsy and only works on quads:
vector bottomLeft = primuv(0,"P",@primnum,set(0,0)); if (v@P == bottomLeft) { v@uv = set(0,0); } vector bottomRight = primuv(0,"P",@primnum,set(1,0)); if (v@P == bottomRight) { v@uv = set(1,0); } vector topLeft = primuv(0,"P",@primnum,set(0,1)); if (v@P == topLeft) { v@uv = set(0,1); } vector topRight = primuv(0,"P",@primnum,set(1,1)); if (v@P == topRight) { v@uv = set(1,1); }
I want to extract the exact parametric UVs that houdini generates for each polygo. This page can be used as reference: https://www.sidefx.com/docs/houdini/model/primitive_spaces.html [www.sidefx.com]