Rename SolveCraft to SolidCraft everywhere, with compatibility shims (#389)

* WIP deep rename (not for push)

* WIP2

* WIP3

* WIP4 wxs fix

* rustfmt

* Rename the remaining identifiers in merged crash-report code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bherbruckandClaude Opus 5.5 authored and GitHub committed 2026-10-12 17:17:01 -04:00
1 parent 27415e4dd7
commit 296683229d
464 files changed
+3408 -2956

No files matched your search

+11 -11
View File
@@ -1,4 +1,4 @@
//! A sample design (used by `solvecraft --sample` and demos): a parametric plate with rounded
//! A sample design (used by `solidcraft --sample` and demos): a parametric plate with rounded
//! corners, two holes and a boss.
use serde_json::{Value, json};
@@ -147,14 +147,14 @@ mod tests {
.doc
.features
.iter()
.find(|feature| feature.name == "Boss" && matches!(feature.kind, solvecraft_doc::FeatureKind::Sketch { .. }))
.find(|feature| feature.name == "Boss" && matches!(feature.kind, solidcraft_doc::FeatureKind::Sketch { .. }))
.unwrap()
.id;
let bore = session
.doc
.features
.iter()
.find(|feature| feature.name == "Bore" && matches!(feature.kind, solvecraft_doc::FeatureKind::Sketch { .. }))
.find(|feature| feature.name == "Bore" && matches!(feature.kind, solidcraft_doc::FeatureKind::Sketch { .. }))
.unwrap()
.id;
session.execute("parameters.change", &serde_json::json!({"name":"thickness","expression":"12 mm"})).unwrap();
@@ -164,17 +164,17 @@ mod tests {
let world = session.world_state();
let plate = world.body("Plate").unwrap().mesh();
assert!((plate.bounds().max.z - 26.).abs() < 1e-6);
assert!(plate.contains(solvecraft_geom::Vec3::new(5., 25., 10.)));
assert!(plate.contains(solvecraft_geom::Vec3::new(40., 35., 24.)));
assert!(!plate.contains(solvecraft_geom::Vec3::new(40., 25., 24.)));
assert!(!plate.contains(solvecraft_geom::Vec3::new(40., 25., 2.)));
assert!(plate.contains(solvecraft_geom::Vec3::new(40., 35., 2.)));
let reopened = crate::Session::new(solvecraft_doc::Document::from_json(&session.doc.to_json()).unwrap());
assert!(plate.contains(solidcraft_geom::Vec3::new(5., 25., 10.)));
assert!(plate.contains(solidcraft_geom::Vec3::new(40., 35., 24.)));
assert!(!plate.contains(solidcraft_geom::Vec3::new(40., 25., 24.)));
assert!(!plate.contains(solidcraft_geom::Vec3::new(40., 25., 2.)));
assert!(plate.contains(solidcraft_geom::Vec3::new(40., 35., 2.)));
let reopened = crate::Session::new(solidcraft_doc::Document::from_json(&session.doc.to_json()).unwrap());
assert!((reopened.model.state().sketch(bore).unwrap().plane.origin.z - 26.).abs() < 1e-6);
let reopened_world = reopened.world_state();
let reopened_plate = reopened_world.body("Plate").unwrap().mesh();
assert!(!reopened_plate.contains(solvecraft_geom::Vec3::new(40., 25., 2.)));
assert!(reopened_plate.contains(solvecraft_geom::Vec3::new(40., 35., 2.)));
assert!(!reopened_plate.contains(solidcraft_geom::Vec3::new(40., 25., 2.)));
assert!(reopened_plate.contains(solidcraft_geom::Vec3::new(40., 35., 2.)));
}
/// Every built-in sample builds without a failing feature or joint.