ssi_score::score_case grades an engine result (sampled curves with xyz, uv1, uv2, both surfaces at the UV samples and the curve type; points; status; or a crash) against a corpus case: CRASH, ERROR, INCOMPLETE, WRONG TOPOLOGY, INACCURATE or PASS, with score.py's flags and numbers. ssi_corpus.rs checks every case parses, every NURBS surface lies on its truth, the truth itself passes (bar unsplit singular points), and the verdict rules. The ignored parity test scores the corpus runner's raw outputs and compares with score.py: 119/119 identical verdicts and flags for SMLib GlobalSurfaceIntersect at 1e-6 (81 PASS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.1 KiB
TOML
37 lines
1.1 KiB
TOML
[package]
|
|
name = "solidcraft-smlib"
|
|
description = "SolidCraft: NVIDIA's SMLib B-rep kernel (tangency-labs/smlib, Apache-2.0), statically linked behind its C API, with a safe Rust wrapper"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
links = "smlib"
|
|
|
|
# The workspace lints, except unsafe_code: denied, not forbidden, so that src/ffi.rs can allow it.
|
|
# Calling a C library has no safe API. Keep the rest in sync with [workspace.lints].
|
|
[lints.rust]
|
|
unsafe_code = "deny"
|
|
|
|
[lints.clippy]
|
|
dbg_macro = "warn"
|
|
todo = "warn"
|
|
too_many_arguments = "allow"
|
|
type_complexity = "allow"
|
|
neg_cmp_op_on_partial_ord = "allow"
|
|
|
|
[features]
|
|
# Compile and link SMLib. Off, the crate builds without a C++ toolchain or the SMLib sources, and
|
|
# every call returns `Error::NotBuilt`, so workspace-wide builds and checks need neither.
|
|
native = []
|
|
|
|
[dependencies]
|
|
log = { workspace = true }
|
|
solidcraft-geom = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
cc = { version = "1.2", features = ["parallel"] }
|
|
|
|
[dev-dependencies]
|
|
flate2 = "1.1"
|
|
serde_json = { workspace = true }
|