alice-sdf 5.1.1

ALICE-SDF: 3D/Spatial Data Specialist — Store laws, not polygons. GLSL/WGSL/HLSL transpile, SVO, GPU marching cubes, texture-fit, procedural CSG. Optional bridges to alice-physics / alice-codec / libasp / alice-cache behind features.
Documentation
# Contributing to ALICE-SDF

## Build

```bash
cargo build
cargo build --no-default-features   # lib-only (no CLI)
```

## Test

```bash
cargo test
```

## Lint

```bash
cargo clippy -- -W clippy::all
cargo fmt -- --check
cargo doc --no-deps 2>&1 | grep warning
```

## License Boundary Policy (MIT Core)

ALICE-SDF is MIT-licensed. To prevent feature creep that would make the
MIT core trivially wrappable as a competing SaaS product, the following
rules apply:

**Allowed contributions:**
- SDF primitives, CSG operations, transforms
- Mesh generation (Marching Cubes, Dual Contouring, etc.)
- File format I/O (.asdf, .stl, .obj — local file only)
- SIMD/Rayon optimizations
- Python bindings (PyO3)
- C FFI headers

**Not allowed in this crate:**
- HTTP/WebSocket endpoints or server logic
- Cloud storage integrations (S3, GCS, etc.)
- Authentication, API keys, or session management
- Billing, metering, or usage tracking
- Database connections or ORM

These features belong in AGPL-licensed crates (ALICE-CDN, ALICE-API, etc.)
or commercial modules. See `BRAND_GUIDELINES.md` in ALICE-Eco-System.

## Design Constraints

- **SDF semantics**: all primitives return the *signed distance* — negative inside, positive outside, zero on the surface.
- **CSG correctness**: `union = min`, `intersection = max`, `subtraction = max(a, -b)`. Smooth variants use polynomial blending.
- **Deterministic evaluation**: same SDF tree + same point = same distance on all platforms.
- **Rayon parallelism**: mesh generation and batch evaluation use work-stealing parallelism.
- **SIMD via `wide`**: portable AVX2/AVX-512/NEON paths for inner-loop evaluation.
- **File format**: `.asdf` binary (bincode + CRC32) and `.asdf.json` (serde_json) formats.
- **Reciprocal constants**: pre-compute `1.0 / N` to avoid division in hot paths.