Make room for a vertex count in the header of each serialized tile

This commit is contained in:
Erica Fischer
2024-07-30 15:25:59 -07:00
parent cf4f912a10
commit 049c24c754
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -2219,6 +2219,8 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
std::atomic<long long> geompos(0);
/* initial tile is normally 0/0/0 but can be iz/ix/iy if limited to one tile */
long long vertex_count = 0;
fwrite_check(&vertex_count, sizeof(vertex_count), 1, geomfile, &geompos, fname);
serialize_int(geomfile, iz, &geompos, fname);
serialize_uint(geomfile, ix, &geompos, fname);
serialize_uint(geomfile, iy, &geompos, fname);