Skip to content

fix: WASM face validation, constants, and size checks#5

Merged
LachyFS merged 1 commit into
mainfrom
fix/wasm-face-validation
Apr 1, 2026
Merged

fix: WASM face validation, constants, and size checks#5
LachyFS merged 1 commit into
mainfrom
fix/wasm-face-validation

Conversation

@LachyFS

@LachyFS LachyFS commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Export FACE_POS_X..FACE_NEG_Z constants for JS consumers
  • Return errors for invalid face values instead of silent failures
  • Add ChunkNeighbors::size() accessor
  • Validate chunk/neighbor size match in mesh_with_neighbors()

Test plan

  • cargo test (72/72 pass)
  • cargo check on urath-wasm
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --all -- --check

- Export FACE_POS_X..FACE_NEG_Z constants for JS consumers
- Return errors for invalid face values instead of silent failures
- Add ChunkNeighbors::size() and validate chunk/neighbor size match
@LachyFS LachyFS merged commit 9227c7b into main Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant