{"id":732,"date":"2023-11-21T08:39:48","date_gmt":"2023-11-21T16:39:48","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=732"},"modified":"2023-11-21T08:55:52","modified_gmt":"2023-11-21T16:55:52","slug":"archived-post-by-technically_artist-2","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2023\/11\/21\/archived-post-by-technically_artist-2\/","title":{"rendered":"Archived post by technically_artist"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">Posting this for future reference and so others won&#8217;t walk my foolish path &#8220;`c \/\/ Vertex Wrangle vector quad[] = {{0,0,0}, {0,1,0}, {1,1,0}, {1,0,0}}; vector tri[] = {{0,0,0}, {1,0,0}, {0,1,0}};<br \/>\nint vtx = vertexprimindex(0, <a href=\"mailto:i@vtxnum\" >i@vtxnum<\/a>); int vtxcount = primvertexcount(0, <a href=\"mailto:i@primnum\" >i@primnum<\/a>);<br \/>\nif(vtxcount == 3)     <a href=\"mailto:v@__intrinsic_uv\" >v@__intrinsic_uv<\/a> = tri[vtx]; else if(vtxcount == 4)     <a href=\"mailto:v@__intrinsic_uv\" >v@__intrinsic_uv<\/a> = quad[vtx]; else \/\/ Probably should do NGons at some point     <a href=\"mailto:v@__intrinsic_uv\" >v@__intrinsic_uv<\/a> = -1.0; &#8220;`<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Posting this for future reference and so others won&#8217;t walk my foolish path &#8220;`c \/\/ Vertex Wrangle vector quad[] = {{0,0,0}, {0,1,0}, {1,1,0}, {1,0,0}}; vector tri[] = {{0,0,0}, {1,0,0}, {0,1,0}}; int vtx = vertexprimindex(0, i@vtxnum); int vtxcount = primvertexcount(0, i@primnum); if(vtxcount == 3) v@__intrinsic_uv = tri[vtx]; else if(vtxcount == 4) v@__intrinsic_uv = quad[vtx]; else \/\/ &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2023\/11\/21\/archived-post-by-technically_artist-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by technically_artist<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/732"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}