Progress toward eliminating decodes of feature indices

This commit is contained in:
Erica Fischer
2025-02-10 13:02:22 -08:00
parent 16c71ff756
commit ebcc8bf799
6 changed files with 30 additions and 14 deletions
+2 -4
View File
@@ -944,12 +944,10 @@ drawvec polygon_to_anchor(const drawvec &geom) {
return drawvec();
}
drawvec checkerboard_anchors(drawvec const &geom, int tx, int ty, int z, unsigned long long label_point) {
drawvec checkerboard_anchors(drawvec const &geom, int tx, int ty, int z, unsigned wx, unsigned wy) {
drawvec out;
// anchor point in world coordinates
unsigned wx, wy;
decode_index(label_point, &wx, &wy);
// wx,wy is anchor point in world coordinates
// upper left of tile in world coordinates
long long tx1 = 0, ty1 = 0;