{"id":987,"date":"2025-06-20T18:20:08","date_gmt":"2025-06-21T01:20:08","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=987"},"modified":"2025-06-20T18:34:51","modified_gmt":"2025-06-21T01:34:51","slug":"archived-post-by-mattiasmalmer-83","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2025\/06\/20\/archived-post-by-mattiasmalmer-83\/","title":{"rendered":"Archived post by mattiasmalmer"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">one step forward two steps back kindof algo \ud83d\ude42<\/p>\n<p class=\"\">nice enough result so i will hold on to it.<\/p>\n<p class=\"\">now back to doing the thing i was actually trying to get done&#8230;<\/p>\n<p class=\"\">i did not like the arbitrariness so I made a better one myself&#8230;<\/p>\n<p class=\"\">\n<p class=\"\">&#8220;` vector poslist[];<br \/>\nvector p0=point(0,&#8221;P&#8221;,pts[0]); vector p1=point(0,&#8221;P&#8221;,pts[1]); vector p2=point(0,&#8221;P&#8221;,pts[2]);<br \/>\nvector n = normalize(p1 &#8211; p0);  vector v = p2 &#8211; (p0+p1)*.5; vector proj = dot(v, n) * n; vector g = p2 &#8211; 2* proj;<br \/>\nappend(poslist,g);<br \/>\nfor (int i=0; i<len(pts); i++) {     append(poslist,vector(point(0,\"P\",pts[i]))); }\np0=point(0,\"P\",pts[-1]); p1=point(0,\"P\",pts[-2]); p2=point(0,\"P\",pts[-3]);\nn = normalize(p1 - p0);  v = p2 - (p0+p1)*.5;  proj = dot(v, n) * n; g = p2 - 2* proj; \nappend(poslist,g);\nint steps=300;\nfor (int i=0; i<steps; i++) { float along=float(i)\/steps;\nvector pos=spline(\"cubic\",along,poslist);\naddpoint(0,pos); }\n```<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20252006\/20\/25\/houdini_upLMp3SOem.mp4\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20252006\/20\/25\/houdini_upLMp3SOem.mp4<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>one step forward two steps back kindof algo \ud83d\ude42 nice enough result so i will hold on to it. now back to doing the thing i was actually trying to get done&#8230; i did not like the arbitrariness so I made a better one myself&#8230; &#8220;` vector poslist[]; vector p0=point(0,&#8221;P&#8221;,pts[0]); vector p1=point(0,&#8221;P&#8221;,pts[1]); vector p2=point(0,&#8221;P&#8221;,pts[2]); vector &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2025\/06\/20\/archived-post-by-mattiasmalmer-83\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by mattiasmalmer<\/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\/987"}],"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=987"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/987\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=987"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}