|
|
|
|
|
by algorias
3602 days ago
|
|
The tricky task of label placement could be outsourced to a SAT solver. The way it works is that for every city, town etc you generate a few placement candidates (4 positions around the point like you do seems fine) and then calculate all the pairs of placements that collide. For each collision you add a clause to a SAT formula that forbids this combination from occurring. Every solution of this formula will be a clean labeling of your map. |
|