{"id":551,"date":"2021-09-09T13:02:04","date_gmt":"2021-09-09T20:02:04","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=551"},"modified":"2021-09-09T13:08:43","modified_gmt":"2021-09-09T20:08:43","slug":"archived-post-by-sniperjake945-8","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2021\/09\/09\/archived-post-by-sniperjake945-8\/","title":{"rendered":"Archived post by SniperJake945"},"content":{"rendered":"<p class=\"\">&#8220;`c \/\/put this shit in a prim wrangle yo int h = primhedge(0, @primnum); int temp = h; int start_pt = hedge_srcpoint(0, h); int new_pts[]; float depth = ch(&#8220;depth&#8221;); float inset = 1 &#8211; ch(&#8220;inset&#8221;); do{     int pt_a = hedge_srcpoint(0, h);     int pt_b = hedge_dstpoint(0, h);     vector p_a = point(0, &#8220;P&#8221;, pt_a);     vector p_b = point(0, &#8220;P&#8221;, pt_b);          \/\/inset     p_a = (((p_a &#8211; @P) * inset) + @P);     p_b = (((p_b &#8211; @P) * inset) + @P);     p_a = p_a + <a href=\"mailto:v@N\" >v@N<\/a> * depth;     p_b = p_b + <a href=\"mailto:v@N\" >v@N<\/a> * depth;          int npt_a;           if(h == temp){          \/\/only runs on our first iteration         npt_a = addpoint(0, p_a);         append(new_pts, npt_a);     }else{         \/\/our current starting point is our previous destination point         npt_a = new_pts[len(new_pts) &#8211; 1];      }<br \/>\n    \/\/add in our destination point, if we&#8217;re not back at the start     int npt_b;     if(start_pt != pt_b){          npt_b = addpoint(0, p_b);          append(new_pts, npt_b);     }else{          npt_b = new_pts[0];     }          \/\/add side walls     addprim(0, &#8220;poly&#8221;,  npt_b, npt_a, pt_a, pt_b);<br \/>\n    h = hedge_next(0, h); }while(h != temp); addprim(0, &#8220;poly&#8221;, new_pts); &#8220;`<br \/>\nthis is polyextrude with the `divide into` toggle set to individual components. if you want to do the connected components stuff, its a lot more effort, but i believe in you. believe in yourself <:meowpensivepray:814858736497590302> also this requires prim normals, so make sure u add those with a normal sop<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;`c \/\/put this shit in a prim wrangle yo int h = primhedge(0, @primnum); int temp = h; int start_pt = hedge_srcpoint(0, h); int new_pts[]; float depth = ch(&#8220;depth&#8221;); float inset = 1 &#8211; ch(&#8220;inset&#8221;); do{ int pt_a = hedge_srcpoint(0, h); int pt_b = hedge_dstpoint(0, h); vector p_a = point(0, &#8220;P&#8221;, pt_a); vector p_b = &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2021\/09\/09\/archived-post-by-sniperjake945-8\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by SniperJake945<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/551"}],"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=551"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}