// generated by diplomat-tool import type { MeshConfig } from "./MeshConfig.mjs" import type { NucleationError } from "./NucleationError.mjs" import type { ResourcePack } from "./ResourcePack.mjs" import type { Schematic } from "./Schematic.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * Raw vertex streams for custom rendering. Wraps {@link crate::meshing::RawMeshExport}. */ export class RawMeshExport { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Export raw mesh data (old ABI: `schematic_to_raw_mesh`). */ static create(schematic: Schematic, pack: ResourcePack, config: MeshConfig): RawMeshExport; /** * Number of vertices in the exported mesh. */ vertexCount(): number; /** * Number of triangles in the exported mesh. */ triangleCount(): number; /** * Flat `[x,y,z,...]` positions as little-endian `f32` bytes, base64-encoded. */ positionsB64(): string; /** * Flat normals as little-endian `f32` bytes, base64-encoded. */ normalsB64(): string; /** * Flat UVs as little-endian `f32` bytes, base64-encoded. */ uvsB64(): string; /** * Flat vertex colors as little-endian `f32` bytes, base64-encoded. */ colorsB64(): string; /** * Triangle indices as little-endian `u32` bytes, base64-encoded. */ indicesB64(): string; /** * Raw RGBA texture pixels, base64-encoded. */ textureRgbaB64(): string; /** * Width of the baked texture in pixels. */ textureWidth(): number; /** * Height of the baked texture in pixels. */ textureHeight(): number; }