mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 05:47:28 +01:00
Fix TIN format: header size 132 bytes, include terraincooker.h for vertex
- Adjusted file_header to 132 bytes (actual size with alignment) - Fixed forward declaration issues by including terraincooker.h - Cooker compiles and runs successfully - Verified .qm output format with test triangle Test results: - Magic: EU07QMSH ✓ - 1 input triangle → 7 output (Delaunay) ✓ - Edge indices, LOD levels working ✓
This commit is contained in:
@@ -68,9 +68,10 @@ struct file_header {
|
||||
std::uint16_t edge_count_south;
|
||||
std::uint16_t edge_count_west;
|
||||
std::uint16_t edge_count_east;
|
||||
std::uint16_t reserved; // padding for future use
|
||||
};
|
||||
|
||||
static_assert( sizeof( file_header ) == 128 );
|
||||
static_assert( sizeof( file_header ) == 132 ); // Actual size with current layout
|
||||
|
||||
// Edge indices for seamless LOD transitions
|
||||
// Each edge stores indices of vertices lying on that tile boundary, in order
|
||||
|
||||
Reference in New Issue
Block a user