|
Porytiles
|
#include "porytiles/domain/packing/models/packable_tile.hpp"#include "porytiles/domain/packing/models/packed_palette.hpp"#include "porytiles/domain/packing/models/shape_group_metadata.hpp"Go to the source code of this file.
Namespaces | |
| namespace | porytiles |
Functions | |
| bool | porytiles::palette_contains_sibling (const PackableTile::Id &tile_id, const PackedPalette &palette, const ShapeGroupMetadata &metadata) |
| Checks whether a palette already contains a sibling of the given tile (same shape group, different tile). | |
| double | porytiles::compute_sharing_penalty (const PackableTile &tile, const PackedPalette &palette, const ShapeGroupMetadata &metadata, double sharing_weight=0.5) |
| Computes the sharing penalty for placing a tile in a palette. | |