Questions tagged [tiling]

Use this tag for questions about tessellations as well as figuratively the optimization technique of loop tiling.

175 questions
55
votes
8 answers

Tiled drawable sometimes stretches

I have a ListView whose items have a tiled background. To accomplish this, I use the following drawable xml:
benvd
  • 5,776
  • 5
  • 39
  • 59
31
votes
3 answers

Mathematically producing sphere-shaped hexagonal grid

I am trying to create a shape similar to this, hexagons with 12 pentagons, at an arbitrary size. (Image Source) The only thing is, I have absolutely no idea what kind of code would be needed to generate it! The goal is to be able to take a point in…
26
votes
5 answers

Generalizing the algorithm for domino tiling?

In this earlier question the OP asked the following problem: Given a rectangular grid where some squares are empty and some are filled, what is the largest number of 2x1 dominoes that can be placed into the world such that no two dominos overlap…
templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
15
votes
2 answers

Can I get a proper tiling window manager in KDE

I've been a bit conflicted about switching over to a tiling window manager. I made the switch a while ago and I really like it for some things but for other things I don't. So I ended up switching back to my trusty KDE. However, when switching…
StFS
  • 1,639
  • 2
  • 15
  • 31
14
votes
0 answers

Vim-like window manager

In my daily work I use a lot vim as my editor and the tiling window manager awesome. In my opinion both are great tools. What I don't like about awesome (and multiple other tiling window managers) are the unpleasant key-combinations like WIN+ANY…
lslah
  • 556
  • 8
  • 17
13
votes
3 answers

opengl, Black lines in-between tiles

When its translated in an integral value (1,2,3, etc....), there are no black lines in-between the tiles, it looks fine. But when it's translated to a non-integral (1.1, 1.5, 1.67), there are small blackish lines between each tile (I'm imagining…
MiJyn
  • 5,327
  • 4
  • 37
  • 64
12
votes
5 answers

String Tiling Algorithm

I'm looking for an efficient algorithm to do string tiling. Basically, you are given a list of strings, say BCD, CDE, ABC, A, and the resulting tiled string should be ABCDE, because BCD aligns with CDE yielding BCDE, which is then aligned with ABC…
João Silva
  • 89,303
  • 29
  • 152
  • 158
11
votes
2 answers

Tiling a Bitmap on a Canvas

I would like to create a 'graph paper' look to the Bitmap I am drawing via a Canvas, and trying to figure out the best way to do this. I can't pass a source Bitmap containing the graph paper background to the Canvas constructor, as I am getting the…
Unpossible
  • 10,607
  • 22
  • 75
  • 113
10
votes
4 answers

How to break an array into blocks

I have an array that represents points in a cuboid. It is a one dimensional array, which uses the following indexing function to realise the 3 dimensions: int getCellIndex(int ix, int iy, int iz) { return ix + (iy * numCellsX) + (iz * numCellsX…
JC2188
  • 337
  • 3
  • 17
10
votes
1 answer

OpenLayers, Layers: Tiled vs. single tile

Each time we add a new layer to our OpenLayers based website (data provided primarily by a GeoServer server), we discuss whether to use a single-tile or a tiled approach. Some of the parameters we evaluate are the following: Using the tiled…
Chau
  • 5,540
  • 9
  • 65
  • 95
9
votes
1 answer

Tiling images in android with ImageView in XML

I am trying to get an image on the background to tile until the background is full. My current code is:
user938787
9
votes
5 answers

Counting the ways to build a wall with two tile sizes

You are given a set of blocks to build a panel using 3”×1” and 4.5”×1" blocks. For structural integrity, the spaces between the blocks must not line up in adjacent rows. There are 2 ways in which to build a 7.5”×1” panel, 2 ways to build a 7.5”×2”…
MK1
  • 447
  • 1
  • 5
  • 9
9
votes
3 answers

Algorithm to fit windows on desktop (like tile)

I searching algorithm to solve problem like this: I have few windows, each window can be moved and re sized but with specified ratio between width and height, eg. 2:1 (height:width). Each window can't be on other window and all windows must be fully…
Svisstack
  • 16,203
  • 6
  • 66
  • 100
8
votes
2 answers

Building a matrix by merging the same row vector multiple times

Is there a matlab function which allows me to do the following operation? x = [1 2 2 3]; and then based on x I want to build the matrix m = [1 2 2 3; 1 2 2 3; 1 2 2 3; 1 2 2 3]
Simon
  • 4,999
  • 21
  • 69
  • 97
8
votes
1 answer

Fullscreen and xmonad

I am using xmonad and I am unable to get Chromium to display videos in fullscreen. It was my impression that the following would create a very basic Manage Hook that would detect fullscreen applications and make the window fullscreen and…
Avi Caspe
  • 537
  • 4
  • 12
1
2 3
11 12