Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there an easy way to generate an arbitrary two-dimensional Polyomino tiling: http://en.wikipedia.org/wiki/Polyomino?

Specifically, I would like to generate an array of integer coordinates, for example: {{0,1},{10,11},{15,6},...}, and then output a graphic showing a tiling pattern where a tile is centered at each integer coordinate in my array, and where each tile is labeled with its integer coordinate.

Is there a way for me to do this in three-dimensions?

I have access to Wolfram Mathematica 8.0.

share|improve this question
    
This [mathworld.wolfram.com/Polyomino.html] may be of help. –  David Carraher Jan 8 '13 at 3:40
    
@dude Thanks, yeah, I read the MathWorld article, but it doesn't have any suggestions for implementations. Given, you know, N.K.S., I'm suspicious that there should be a way to do what I'm asking in four or less lines of Mathematica. –  Roger Harris Jan 8 '13 at 3:46
3  
Possible duplicate: mathematica.stackexchange.com/q/6822/5 –  rm -rf Jan 8 '13 at 4:00
add comment

1 Answer

up vote 5 down vote accepted

Take a look at the following articles:

Here is an example of a custom function usage from 1st article producing a tiling:

enter image description here

Also related:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.