Puzzle Solver - Randomizing tile wall - Grasshopper2024-03-29T12:35:53Zhttps://www.grasshopper3d.com/forum/topics/puzzle-solver-randomizing-tile-wall?feed=yes&xn_auth=noJust in case you didn't look…tag:www.grasshopper3d.com,2017-06-19:2985220:Comment:17715252017-06-19T19:15:39.804ZLaurent DELRIEUhttps://www.grasshopper3d.com/profile/LaurentDelrieu
<p>Just in case you didn't look at it, Truchet tiles could help you. It is more simple as all tiles can be glued with another tile.</p>
<p>I did this with 6 differents tiles. You just need random no loops.</p>
<p><a href="http://www.grasshopper3d.com/forum/topics/truchet-tiles-on-revolved-shape" target="_blank">http://www.grasshopper3d.com/forum/topics/truchet-tiles-on-revolved-shape</a></p>
<p></p>
<p>Just in case you didn't look at it, Truchet tiles could help you. It is more simple as all tiles can be glued with another tile.</p>
<p>I did this with 6 differents tiles. You just need random no loops.</p>
<p><a href="http://www.grasshopper3d.com/forum/topics/truchet-tiles-on-revolved-shape" target="_blank">http://www.grasshopper3d.com/forum/topics/truchet-tiles-on-revolved-shape</a></p>
<p></p> Yes that make sense.
I gues…tag:www.grasshopper3d.com,2017-06-19:2985220:Comment:17713412017-06-19T16:12:52.317ZTobias Lund Øhrstrømhttps://www.grasshopper3d.com/profile/TobiasLundOEhrstroem
<p>Yes that make sense. </p>
<p></p>
<p>I guess 1. is the million dollar question. </p>
<p>Yes that make sense. </p>
<p></p>
<p>I guess 1. is the million dollar question. </p> Two things:
You need to come…tag:www.grasshopper3d.com,2017-06-19:2985220:Comment:17712492017-06-19T15:20:48.483ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Two things:</p>
<ol>
<li>You need to come up with a much better way to make sure the edges are properly aligned and connected.</li>
<li>Instead of populating the grid with random tiles and trying four rotation angles at each one, as I did, the loop needs to evaluate sixteen possibilities at each grid point: one of four possible tiles <em><strong>and</strong></em> one of four possible rotations.</li>
</ol>
<p>Two things:</p>
<ol>
<li>You need to come up with a much better way to make sure the edges are properly aligned and connected.</li>
<li>Instead of populating the grid with random tiles and trying four rotation angles at each one, as I did, the loop needs to evaluate sixteen possibilities at each grid point: one of four possible tiles <em><strong>and</strong></em> one of four possible rotations.</li>
</ol> Wow great! I will dig into it…tag:www.grasshopper3d.com,2017-06-19:2985220:Comment:17712482017-06-19T14:43:16.594ZTobias Lund Øhrstrømhttps://www.grasshopper3d.com/profile/TobiasLundOEhrstroem
<p>Wow great! I will dig into it. :)</p>
<p>Wow great! I will dig into it. :)</p> Forget about Hoopsnake, it's…tag:www.grasshopper3d.com,2017-06-18:2985220:Comment:17709192017-06-18T16:58:46.853ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Forget about Hoopsnake, it's useless. Try <a href="http://www.food4rhino.com/app/anemone" rel="nofollow" target="_blank">Anemone</a> instead.</p>
<p>I didn't mean to go this far, but here is a failed effort that might get you started. It is not the only way and perhaps not the best way...</p>
<p>The white "start layout" group places the tiles randomly in a grid.…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769296816?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769296816?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>Forget about Hoopsnake, it's useless. Try <a rel="nofollow" href="http://www.food4rhino.com/app/anemone" target="_blank">Anemone</a> instead.</p>
<p>I didn't mean to go this far, but here is a failed effort that might get you started. It is not the only way and perhaps not the best way...</p>
<p>The white "start layout" group places the tiles randomly in a grid.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769296816?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769296816?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>There are two Anemone loops, one nested inside the other. The outer loop cycles through all the tiles in the grid. The inner loop (yellow group) tries four different angles of rotation trying to join the rotated tile with previous results to get a single joined surface (length of joined surfaces equals one).</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769296883?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769296883?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>But it's terribly flawed and fails (blue and yellow vs. "start layout" in white):<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769296979?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769296979?profile=original" width="460" class="align-full"/></a>Keep the grid size very small until you get something to work. Then you might want to switch to Anemone "Fast Loop" components.</p> Yes my GH file was not very u…tag:www.grasshopper3d.com,2017-06-18:2985220:Comment:17705062017-06-18T09:53:40.400ZTobias Lund Øhrstrømhttps://www.grasshopper3d.com/profile/TobiasLundOEhrstroem
<p>Yes my GH file was not very useful, that was the problem ;)</p>
<p>But what is the approach to build the file with the iterative approach?<br/>Would it to built something up with fx hoopsnake?</p>
<p>Yes my GH file was not very useful, that was the problem ;)</p>
<p>But what is the approach to build the file with the iterative approach?<br/>Would it to built something up with fx hoopsnake?</p> The final pattern should be c…tag:www.grasshopper3d.com,2017-06-14:2985220:Comment:17691402017-06-14T20:59:09.070ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<blockquote><p>The final pattern should be created by min.</p>
</blockquote>
<p>That's a little vague? Looking at the Rhino file, it's clear that tile rotation must respect the orientation of one or two of each tile's adjacent neighbors. This suggests an iterative approach, starting with one tile, placing adjacent tiles until a region is filled. Your GH code doesn't help at all. It doesn't even import the four tile surfaces from Rhino. Interesting but not trivial.</p>
<blockquote><p>The final pattern should be created by min.</p>
</blockquote>
<p>That's a little vague? Looking at the Rhino file, it's clear that tile rotation must respect the orientation of one or two of each tile's adjacent neighbors. This suggests an iterative approach, starting with one tile, placing adjacent tiles until a region is filled. Your GH code doesn't help at all. It doesn't even import the four tile surfaces from Rhino. Interesting but not trivial.</p>