{"id":701,"date":"2026-09-07T22:08:57","date_gmt":"2026-09-07T22:08:57","guid":{"rendered":"https:\/\/x.sheep-mine.ts.net\/index.php\/algorithm-to-detect-if-a-certain-structure-type-is-built-from-cubes-like-in-mi\/"},"modified":"2026-09-07T22:08:57","modified_gmt":"2026-09-07T22:08:57","slug":"algorithm-to-detect-if-a-certain-structure-type-is-built-from-cubes-like-in-mi","status":"publish","type":"post","link":"https:\/\/x.sheep-mine.ts.net\/index.php\/algorithm-to-detect-if-a-certain-structure-type-is-built-from-cubes-like-in-mi\/","title":{"rendered":"Algorithm to detect if a certain structure type is built, from cubes, like in Minecraft"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>Are there any tutorials \/ algorithms to detect whether a certain structure type is built out of cubes?<\/p>\n<p>Aka, does this collection of cubes form a structure that meets the requirements of the structure type<\/p>\n<p>The algorithm should be able to check if the structure has a door, is enclosed, has windows etc. Getting more advanced, maybe check for number of floors, staircase accessibility etc<br \/>\nLet&#8217;s say the player needs to build a house. A house can be tersely defined as: 4 walls, roof, 1 door<\/p>\n<p>However, the walls and roof are made out of smaller parts &#8211; cubes. So it&#8217;s not as easy as checking for complete wall, door and roof prefabs. The algorithm must understand when a connection of cubes becomes a wall \/ roof<\/p>\n<p>I&#8217;d just like to be pointed in the right direction for this<\/p>\n<p><br \/>\n<br \/><a href=\"https:\/\/gamedev.stackexchange.com\/questions\/217411\/algorithm-to-detect-if-a-certain-structure-type-is-built-from-cubes-like-in-mi\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are there any tutorials \/ algorithms to detect whether a certain structure type is built&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1545,1548,1546,1328,1547],"tags":[],"class_list":["post-701","post","type-post","status-publish","format-standard","hentry","category-algorithm","category-computational-geometry","category-procedural-generation","category-unity","category-voxels"],"_links":{"self":[{"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/posts\/701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/comments?post=701"}],"version-history":[{"count":0,"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/posts\/701\/revisions"}],"wp:attachment":[{"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/media?parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/categories?post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/x.sheep-mine.ts.net\/index.php\/wp-json\/wp\/v2\/tags?post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}