{"id":855,"date":"2012-09-13T01:41:00","date_gmt":"2012-09-13T01:41:00","guid":{"rendered":"http:\/\/www.pycheung.com\/weblog\/?p=855"},"modified":"2013-03-27T04:00:54","modified_gmt":"2013-03-27T04:00:54","slug":"recusive-division-on-a-2d-polygon","status":"publish","type":"post","link":"https:\/\/www.pycheung.com\/weblog\/post\/855","title":{"rendered":"recusive division on a 2d polygon"},"content":{"rendered":"<p>          <img loading=\"lazy\" src=\"http:\/\/www.pycheung.com\/weblog\/wp-content\/uploads\/zrtn_001p1f73dfa9_tn.jpg\" style=\"BORDER-BOTTOM: #000000 1px; BORDER-LEFT: #000000 1px; BORDER-TOP: #000000 1px; BORDER-RIGHT: #000000 1px\" height=\"600\" width=\"800\" alt=\"tessallation_subject_to_boundary_s.jpg\" border=\"0\"\/> <br \/>A bounded region is recursively divided into regions until a condition is met. Each split line may consists of small points that are iterated in small steps (as shown above). New positions at each step re-computes the closest point to its containing region until it intersects with the region, resulting in an interpolated split sensitive to the original shape. <\/p>\n<p>Also tried something similar using c# on grasshopper before, trying to re-code this in maya with python in a way that is easier to translate into c++, so most of the small parts can be tested in python to get quick results before compiling. <\/p>\n<p>Some notes on the test implemenation and translation, switching between python and c++: <br \/>list\/vector : list [start:end] | std::vector iterator or std::list <br \/>return: auto unpack multiple type | use reference like what maya does in its api and return a status<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A bounded region is recursively divided into regions until a condition is met. Each split line may consists of small points that are iterated in small steps (as shown above)&#8230;.<\/p>\n<div class=\"royalwp-readmore-wrap\"><a href=\"https:\/\/www.pycheung.com\/weblog\/post\/855\" class=\"royalwp-readmore\">Explore more <i class=\"far fa-hand-point-right\"><\/i><\/a><\/div>\n","protected":false},"author":2,"featured_media":1172,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[155],"tags":[26,60,64,81,169,90],"_links":{"self":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/855"}],"collection":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/comments?post=855"}],"version-history":[{"count":7,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":1240,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/855\/revisions\/1240"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media\/1172"}],"wp:attachment":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media?parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/categories?post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/tags?post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}