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:
1 parent
27415e4dd7
commit
296683229d
464 files changed
+3408
-2956
No files matched your search
@@ -13,7 +13,7 @@
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use solvecraft_geom::Vec3;
|
||||
use solidcraft_geom::Vec3;
|
||||
use truck_modeling::{self as mt, builder};
|
||||
|
||||
use crate::body::{Body, Solid, from_p3, p3, v3};
|
||||
@@ -232,14 +232,14 @@ fn slab_beyond(n: Vec3, d: f64, depth: f64, extent: f64) -> Result<Body> {
|
||||
let u = n.any_perp();
|
||||
let w = n.cross(u);
|
||||
let o = n * d;
|
||||
let pl = solvecraft_geom::Plane::new(o, u, w).ok_or_else(|| KernelError::Failed("slab plane".into()))?;
|
||||
let sq = solvecraft_geom::Loop2::polygon(&[
|
||||
solvecraft_geom::Vec2::new(-extent, -extent),
|
||||
solvecraft_geom::Vec2::new(extent, -extent),
|
||||
solvecraft_geom::Vec2::new(extent, extent),
|
||||
solvecraft_geom::Vec2::new(-extent, extent),
|
||||
let pl = solidcraft_geom::Plane::new(o, u, w).ok_or_else(|| KernelError::Failed("slab plane".into()))?;
|
||||
let sq = solidcraft_geom::Loop2::polygon(&[
|
||||
solidcraft_geom::Vec2::new(-extent, -extent),
|
||||
solidcraft_geom::Vec2::new(extent, -extent),
|
||||
solidcraft_geom::Vec2::new(extent, extent),
|
||||
solidcraft_geom::Vec2::new(-extent, extent),
|
||||
]);
|
||||
let r = solvecraft_geom::Region2 { outer: sq, holes: vec![] };
|
||||
let r = solidcraft_geom::Region2 { outer: sq, holes: vec![] };
|
||||
crate::extrude(&pl, &[r], 0.0, depth)?.pop().ok_or_else(|| KernelError::Failed("slab".into()))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user