mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02: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
|
||||
|
||||
@@ -26,12 +26,10 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include <CDT.h>
|
||||
|
||||
#include "scene/quantizedmeshformat.h"
|
||||
#include "scene/terraincooker.h" // For terrain::vertex definition
|
||||
|
||||
namespace terrain {
|
||||
|
||||
// Forward declarations from terraincooker.h
|
||||
struct vertex;
|
||||
|
||||
// Triangle with material
|
||||
struct tin_triangle {
|
||||
vertex v[ 3 ];
|
||||
|
||||
Reference in New Issue
Block a user