Wave 67/509: kernel-cases: sweeps skipped sources (72) (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. -75aa8acb6Brennen Herbruck: kernel-cases: sweeps skipped sources (72) -678a70da2bherbruck: kernel-cases: shells as a graded count, no SMLib verdict where it can't take the record, $OUT -c24b066d2bherbruck: kernel-cases: an outcome for geometry with no single manifold answer -8764a76ffBrennen Herbruck: kernel-cases: threads cases from #1995 and #3368 (finely faceted booleans), skipped #987 #3130 #3824 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
1 parent
dcab94fcd7
commit
ed5bed8f00
24 files changed
+571
-68
No files matched your search
@@ -14,14 +14,24 @@ fn kernel() -> String {
|
||||
std::env::var("SOLIDCRAFT_BOOLEANS").ok().filter(|k| !k.is_empty()).unwrap_or_else(|| "default".into())
|
||||
}
|
||||
|
||||
/// The case's commands: a script as is, or an oracle recipe translated; `$CASE` in a string is
|
||||
/// the case directory (for input files such as `input.step`).
|
||||
fn script(dir: &str, recipe: &Value) -> Result<Value, String> {
|
||||
/// The case's commands: a script as is, or an oracle recipe translated. In a string, `$CASE` is
|
||||
/// the case directory (input files such as `input.step`) and `$OUT` a scratch directory for files
|
||||
/// the case writes (an export), outside the repository.
|
||||
fn script(dir: &str, out: &str, recipe: &Value) -> Result<Value, String> {
|
||||
let s = if recipe.get("commands").is_some() || recipe.is_array() { recipe.clone() } else { recipe::to_script(recipe)? };
|
||||
let text = serde_json::to_string(&s).map_err(|e| e.to_string())?;
|
||||
let dir_json = serde_json::to_string(dir).map_err(|e| e.to_string())?;
|
||||
let dir_inner = dir_json.get(1..dir_json.len().saturating_sub(1)).unwrap_or("");
|
||||
serde_json::from_str(&text.replace("$CASE", dir_inner)).map_err(|e| e.to_string())
|
||||
let inner = |p: &str| -> Result<String, String> {
|
||||
let j = serde_json::to_string(p).map_err(|e| e.to_string())?;
|
||||
Ok(j.get(1..j.len().saturating_sub(1)).unwrap_or("").to_string())
|
||||
};
|
||||
serde_json::from_str(&text.replace("$CASE", &inner(dir)?).replace("$OUT", &inner(out)?)).map_err(|e| e.to_string())
|
||||
}
|
||||
|
||||
/// A scratch directory for one case's output files.
|
||||
fn scratch(area: &str, name: &str) -> Result<String, String> {
|
||||
let d = std::env::temp_dir().join(format!("solidcraft-kernel-cases-{}", std::process::id())).join(format!("{area}-{name}"));
|
||||
std::fs::create_dir_all(&d).map_err(|e| format!("{}: {e}", d.display()))?;
|
||||
Ok(d.to_string_lossy().to_string())
|
||||
}
|
||||
|
||||
/// An error that means "this kernel can't do it yet", not a wrong answer.
|
||||
@@ -52,7 +62,7 @@ fn check_case(dir: &str) -> Value {
|
||||
}
|
||||
};
|
||||
out["sources"] = want["sources"].clone();
|
||||
let commands = match read_json(&format!("{dir}/recipe.json")).and_then(|r| script(dir, &r)) {
|
||||
let commands = match scratch(&area, &name).and_then(|o| read_json(&format!("{dir}/recipe.json")).and_then(|r| script(dir, &o, &r))) {
|
||||
Ok(s) => s,
|
||||
Err(e) => {
|
||||
out["status"] = json!("fail");
|
||||
@@ -71,10 +81,15 @@ fn check_case(dir: &str) -> Value {
|
||||
out["error"] = json!(format!("this build runs booleans on the {running} kernel, not {}", kernel()));
|
||||
return out;
|
||||
}
|
||||
let refused = want["outcome"].as_str() == Some("refused");
|
||||
// `refused`: only a clean refusal is right; `solid_or_refused`: a clean refusal, or a result
|
||||
// graded as usual (where the geometry has no manifold answer, such as bodies touching along a
|
||||
// curve only).
|
||||
let outcome = want["outcome"].as_str().unwrap_or("solid");
|
||||
let refused = outcome == "refused";
|
||||
let may_refuse = refused || outcome == "solid_or_refused";
|
||||
let mut s = solidcraft_engine::Session::default();
|
||||
let ran = s.run_script(&commands);
|
||||
match (ran, refused) {
|
||||
match (ran, may_refuse) {
|
||||
(Err(e), _) if crashed(&e.to_string()) => {
|
||||
out["status"] = json!("crash");
|
||||
out["error"] = json!(e.to_string());
|
||||
@@ -92,12 +107,12 @@ fn check_case(dir: &str) -> Value {
|
||||
out["error"] = json!(e);
|
||||
return out;
|
||||
}
|
||||
(Ok(_), true) => {
|
||||
(Ok(_), true) if refused => {
|
||||
out["status"] = json!("fail");
|
||||
out["error"] = json!("succeeded where the case expects a refusal");
|
||||
return out;
|
||||
}
|
||||
(Ok(_), false) => {}
|
||||
(Ok(_), _) => {}
|
||||
}
|
||||
|
||||
// Every body in the world, imported components included.
|
||||
@@ -105,6 +120,10 @@ fn check_case(dir: &str) -> Value {
|
||||
let mut bodies = Vec::new();
|
||||
let mut c = Checks { list: Vec::new(), pass: true };
|
||||
let want_valid = want["valid"].as_bool().unwrap_or(true);
|
||||
// Shells: the total where the case gives it (a body with a void, or several lumps in one
|
||||
// body), else one per body.
|
||||
let want_shells = want["shells"].as_u64();
|
||||
let mut shells = 0u64;
|
||||
for b in &world.bodies {
|
||||
let m = match solidcraft_engine::kernel::measure(&b.body) {
|
||||
Ok(m) => m,
|
||||
@@ -118,13 +137,22 @@ fn check_case(dir: &str) -> Value {
|
||||
"bbox": {"min": m.bbox.min, "max": m.bbox.max},
|
||||
"faces": m.merged.faces, "edges": m.merged.edges, "vertices": m.merged.vertices,
|
||||
}));
|
||||
shells += m.shells as u64;
|
||||
if want_valid {
|
||||
// One closed shell, and every validity check this build has.
|
||||
c.push("shells", json!(format!("{}: {}", b.name, m.shells)), json!(1), m.shells == 1);
|
||||
// Closed shells, and every validity check this build has.
|
||||
if want_shells.is_none() {
|
||||
c.push("shells", json!(format!("{}: {}", b.name, m.shells)), json!(1), m.shells == 1);
|
||||
}
|
||||
let v = solidcraft_engine::kernel::validity(&b.body);
|
||||
c.push("record_valid", json!(v.record.clone().err().unwrap_or_else(|| "ok".into())), json!("ok"), v.record.is_ok());
|
||||
if let Some(sm) = &v.smlib {
|
||||
c.push("smlib_check", json!(sm.clone().err().unwrap_or_else(|| "ok".into())), json!("ok"), sm.is_ok());
|
||||
match &v.smlib {
|
||||
Some(solidcraft_engine::kernel::SmlibCheck::Valid) => c.push("smlib_check", json!("ok"), json!("ok"), true),
|
||||
Some(solidcraft_engine::kernel::SmlibCheck::Invalid(e)) => c.push("smlib_check", json!(e), json!("ok"), false),
|
||||
// No verdict: the record can't be built in SMLib yet. Shown, not graded.
|
||||
Some(solidcraft_engine::kernel::SmlibCheck::NotSupported(e)) => {
|
||||
c.push("smlib_check", json!(format!("no verdict: {e}")), json!("ok"), true)
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -142,6 +170,7 @@ fn check_case(dir: &str) -> Value {
|
||||
}
|
||||
};
|
||||
count(&mut c, "body_count", got.body_count as u64);
|
||||
count(&mut c, "shells", shells);
|
||||
count(&mut c, "faces", got.faces);
|
||||
count(&mut c, "edges", edges);
|
||||
count(&mut c, "vertices", vertices);
|
||||
|
||||
@@ -224,7 +224,7 @@ pub use sweep_path::{RailFit, SweepControl, SweepOrientation, sweep_path, sweep_
|
||||
pub use topo::{CylinderFace, cylinder_end_at, cylinder_face, cylinder_face_at};
|
||||
pub use topo::{TopoCounts, merged_topology, seam_flags};
|
||||
pub use tspline::tspline_sheet;
|
||||
pub use validity::{Validity, boolean_kernel, smlib_built, validity};
|
||||
pub use validity::{SmlibCheck, Validity, boolean_kernel, smlib_built, validity};
|
||||
pub use whole_face::{WholeFace, cut_takes_only_the_face, cut_tool, face_prism, matching_face};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, thiserror::Error)]
|
||||
|
||||
@@ -10,12 +10,22 @@ pub struct Validity {
|
||||
/// The record: structure, then geometry against topology within tolerances.
|
||||
pub record: Result<(), String>,
|
||||
/// SMLib's `check(All)` of the record; `None` in a build without SMLib.
|
||||
pub smlib: Option<Result<(), String>>,
|
||||
pub smlib: Option<SmlibCheck>,
|
||||
}
|
||||
|
||||
/// SMLib's verdict on a body.
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum SmlibCheck {
|
||||
Valid,
|
||||
Invalid(String),
|
||||
/// The record can't be built in SMLib yet (a geometry kind the conversion doesn't take): no
|
||||
/// verdict, and no fault of the body's.
|
||||
NotSupported(String),
|
||||
}
|
||||
|
||||
impl Validity {
|
||||
pub fn ok(&self) -> bool {
|
||||
self.record.is_ok() && self.smlib.as_ref().is_none_or(Result::is_ok)
|
||||
self.record.is_ok() && !matches!(self.smlib, Some(SmlibCheck::Invalid(_)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,16 +40,23 @@ pub fn validity(body: &Body) -> Validity {
|
||||
}
|
||||
|
||||
#[cfg(feature = "smlib")]
|
||||
fn smlib_validity(body: &Body) -> Option<Result<(), String>> {
|
||||
let checked = crate::smlib_body(body).map_err(|e| e.to_string()).and_then(|b| {
|
||||
let r = b.check(solidcraft_smlib::CheckLevel::All).map_err(|e| format!("SMLib check: {e}"))?;
|
||||
if r.is_valid() { Ok(()) } else { Err(format!("SMLib check: {r}")) }
|
||||
});
|
||||
Some(checked)
|
||||
fn smlib_validity(body: &Body) -> Option<SmlibCheck> {
|
||||
let b = match crate::smlib_body(body) {
|
||||
Ok(b) => b,
|
||||
Err(e) => {
|
||||
let e = e.to_string();
|
||||
return Some(if e.contains("not supported yet") { SmlibCheck::NotSupported(e) } else { SmlibCheck::Invalid(e) });
|
||||
}
|
||||
};
|
||||
Some(match b.check(solidcraft_smlib::CheckLevel::All) {
|
||||
Ok(r) if r.is_valid() => SmlibCheck::Valid,
|
||||
Ok(r) => SmlibCheck::Invalid(format!("SMLib check: {r}")),
|
||||
Err(e) => SmlibCheck::Invalid(format!("SMLib check: {e}")),
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "smlib"))]
|
||||
fn smlib_validity(_: &Body) -> Option<Result<(), String>> {
|
||||
fn smlib_validity(_: &Body) -> Option<SmlibCheck> {
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,8 @@ Each case has:
|
||||
- `recipe.json`: an engine command script (`{"commands": [...]}`, as `solidcraft-cli run`
|
||||
takes) or an oracle recipe (`tests/oracle/*/recipe.json`). `$CASE` in a string is the case
|
||||
directory, for an input file such as `$CASE/input.step` (written by hand from the STEP or IGES
|
||||
specification, never a user's file).
|
||||
specification, never a user's file), and `$OUT` a scratch directory outside the repository for
|
||||
files the case writes (an export).
|
||||
- `expected.json`: the right answer, graded by `solidcraft-cli kernel-cases`.
|
||||
|
||||
Each area also has `skipped.json` (or several, `skipped-<part>.json`, where an area is triaged in
|
||||
@@ -74,8 +75,9 @@ parts): every issue and PR looked at that did not become a case, with one line e
|
||||
| `what` | One line: the geometry that went wrong. |
|
||||
| `source` | `analytic` (numbers worked out by hand; `method` gives the formulas) or `invariants` (no number is known: only the outcome, validity and counts are graded). |
|
||||
| `method` | How the numbers were derived, or which invariants hold and why. |
|
||||
| `outcome` | `solid` (default: the script succeeds) or `refused` (the right answer is a clean error, never a panic or a hang). |
|
||||
| `valid` | Default `true`: every body is one closed shell that passes the record's structure and geometry checks and, in builds with SMLib, SMLib's `check(All)`. `false` only where the result is legitimately not a solid. |
|
||||
| `outcome` | `solid` (default: the script succeeds), `refused` (the right answer is a clean error, never a panic or a hang), or `solid_or_refused` (either a clean error or a result graded as usual, where the geometry has no single manifold answer, such as two bodies touching along a curve only). |
|
||||
| `valid` | Default `true`: every body is one closed shell (or `shells` in all) that passes the record's structure and geometry checks and, in builds with SMLib, SMLib's `check(All)`. `false` only where the result is legitimately not a solid (a sheet). Where SMLib can't take the record yet (a surface kind its conversion lacks), its check gives no verdict and is not graded. |
|
||||
| `shells` | The total number of shells, where it isn't one per body: a body with a sealed void (2), several lumps kept in one body. |
|
||||
| `body_count`, `faces`, `edges`, `vertices` | Exact counts, where the geometry fixes them. Faces and edges count whole analytic surfaces and curves once (a full cylinder side is one face). |
|
||||
| `volume_mm3`, `area_mm2`, `center_of_mass`, `bbox` | As in `tests/oracle`: totals over every body, relative tolerance 1e-3 for volume and area, 1e-3 of the box diagonal for positions. |
|
||||
| `tolerance` | Optional overrides: `rel`, `abs_mm`. |
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#168"
|
||||
],
|
||||
"what": "a rim on a coin's top face that meets the coin along one circle only (no shared area, no shared volume): it must not be joined into it",
|
||||
"source": "analytic",
|
||||
"method": "coin r10 h5: 500 pi; rim = ring r10..14 standing on z=5 for 3: pi*(196-100)*3 = 288 pi. They share only the circle r10 at z=5, so the result is two bodies (or a refusal, never one joined body); volume 788 pi = 2475.664. body_count 2",
|
||||
"body_count": 2,
|
||||
"volume_mm3": 2475.5750110287568
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#168"
|
||||
],
|
||||
"what": "a rim on a coin's top face that meets the coin along one circle only (no shared area, no shared volume): it must not be joined into it",
|
||||
"source": "analytic",
|
||||
"outcome": "solid_or_refused",
|
||||
"method": "coin r10 h5: 500 pi; rim = ring r10..14 standing on z=5 for 3: pi*(196-100)*3 = 288 pi. They share only the circle r10 at z=5, so the right answer is a clean refusal or two bodies, never one joined body; volume 788 pi = 2475.664. body_count 2",
|
||||
"body_count": 2,
|
||||
"volume_mm3": 2475.5750110287568
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
],
|
||||
"what": "a cut over the bottom edge of a revolved cylinder that holds a sealed spherical void on its axis: the body must not come out empty or refused",
|
||||
"source": "analytic",
|
||||
"method": "revolved cylinder r24 h60 minus the sealed sphere r2 at z=30 minus the box x 20..30, y -10..10, z -5..10 where it meets the cylinder: {x>=20, |y|<=10, x^2+y^2<=24^2} is Int from -10 to 10 of (sqrt(576-y^2) - 20) dy = 10*sqrt(476) + 576*asin(10/24) - 400 = 65.725 over z in 0..10. V = pi*24^2*60 - 4/3*pi*2^3 - 10*area = 107882.68. One body that holds two shells (outer and the void), so valid is false: the rig reads more than one shell as not a solid",
|
||||
"valid": false,
|
||||
"method": "revolved cylinder r24 h60 minus the sealed sphere r2 at z=30 minus the box x 20..30, y -10..10, z -5..10 where it meets the cylinder: {x>=20, |y|<=10, x^2+y^2<=24^2} is Int from -10 to 10 of (sqrt(576-y^2) - 20) dy = 10*sqrt(476) + 576*asin(10/24) - 400 = 65.725 over z in 0..10. V = pi*24^2*60 - 4/3*pi*2^3 - 10*area = 107882.68. One body with two shells (outer and the void)",
|
||||
"body_count": 1,
|
||||
"shells": 2,
|
||||
"volume_mm3": 107882.68287918373
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
],
|
||||
"what": "one combine of 64 separate pegs that do not touch: 36 s on truck, growing 4-9x per doubling; must finish in seconds",
|
||||
"source": "analytic",
|
||||
"method": "64 non-touching 48-gon pegs of circumradius 2, 1 mm tall, 6 mm apart: each area 0.5*48*2^2*sin(2pi/48) = 12.5305, V = 64 * 12.5305 * 1. The join keeps them in one body (several lumps). A hang is a failure: time should grow with the number of bodies. valid is false only because the one body holds 64 separate shells, which the rig's one-shell check does not allow",
|
||||
"method": "64 non-touching 48-gon pegs of circumradius 2, 1 mm tall, 6 mm apart: each area 0.5*48*2^2*sin(2pi/48) = 12.5305, V = 64 * 12.5305 * 1. The join keeps them in one body (several lumps). A hang is a failure: time should grow with the number of bodies. One body with 64 shells",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 801.9529,
|
||||
"valid": false
|
||||
}
|
||||
"shells": 64,
|
||||
"volume_mm3": 801.9529
|
||||
}
|
||||
@@ -5,8 +5,8 @@
|
||||
],
|
||||
"what": "intersect of a two-lump target (two spheres joined while apart) with a box holding the bottom half of each",
|
||||
"source": "analytic",
|
||||
"method": "box x -10..40, y -10..10, z -10..0 holds the z<=0 half of each r=4 sphere (centres (0,0,0), (30,0,0)): V = 2 * (2/3) pi 4^3 = 268.083. The body must not be removed. valid is false only because the one body holds two separate shells, which the rig's one-shell check does not allow",
|
||||
"method": "box x -10..40, y -10..10, z -10..0 holds the z<=0 half of each r=4 sphere (centres (0,0,0), (30,0,0)): V = 2 * (2/3) pi 4^3 = 268.083. The body must not be removed. One body with two shells",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 268.0826,
|
||||
"valid": false
|
||||
}
|
||||
"shells": 2,
|
||||
"volume_mm3": 268.0826
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
],
|
||||
"what": "Join of a ring (r10..15) onto a coin (r10) that touch only along a circle: no fusion that moves the ring",
|
||||
"source": "invariants",
|
||||
"outcome": "refused",
|
||||
"method": "the bodies share one circular edge and no area, so a join has no valid solid to give: the right answer is a clean refusal (New Body gives two independent solids). Succeeding means the kernel moved or rotated the ring to fuse it"
|
||||
}
|
||||
"outcome": "solid_or_refused",
|
||||
"method": "the bodies share one circular edge and no area, so a join has no single manifold solid to give: the right answer is a clean refusal, or the two bodies left as they are (body_count 2). Fusing them means the kernel moved or rotated the ring",
|
||||
"body_count": 2
|
||||
}
|
||||
@@ -834,7 +834,7 @@
|
||||
{
|
||||
"command": "file.export",
|
||||
"params": {
|
||||
"path": "/tmp/kernel-case-1985.step",
|
||||
"path": "$OUT/kernel-case-1985.step",
|
||||
"format": "step"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1103,7 +1103,7 @@
|
||||
{
|
||||
"command": "file.export",
|
||||
"params": {
|
||||
"path": "/tmp/kernel-case-2243.step",
|
||||
"path": "$OUT/kernel-case-2243.step",
|
||||
"format": "step"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#3730",
|
||||
"tangency-labs/solidcraft#3872"
|
||||
],
|
||||
"what": "a block with a closed cavity written as BREP_WITH_VOIDS whose void shell (outward-facing faces) is turned by ORIENTED_CLOSED_SHELL .F.; the cavity must be taken out, not added",
|
||||
"source": "analytic",
|
||||
"method": "V = 40*30*12.5 - 20*6*5 = 15000 - 600; A = 2(40*30+40*12.5+30*12.5) + 2(20*6+20*5+6*5) = 4150 + 500; faces 6+6, edges 12+12, vertices 8+8; valid is false only because a body with a void holds two shells (outer and cavity), which the one-shell validity check does not allow",
|
||||
"valid": false,
|
||||
"body_count": 1,
|
||||
"volume_mm3": 14400.0,
|
||||
"area_mm2": 4650.0,
|
||||
"faces": 12,
|
||||
"edges": 24,
|
||||
"vertices": 16
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#3730",
|
||||
"tangency-labs/solidcraft#3872"
|
||||
],
|
||||
"what": "a block with a closed cavity written as BREP_WITH_VOIDS whose void shell (outward-facing faces) is turned by ORIENTED_CLOSED_SHELL .F.; the cavity must be taken out, not added",
|
||||
"source": "analytic",
|
||||
"method": "V = 40*30*12.5 - 20*6*5 = 15000 - 600; A = 2(40*30+40*12.5+30*12.5) + 2(20*6+20*5+6*5) = 4150 + 500; faces 6+6, edges 12+12, vertices 8+8; one body with two shells (outer and cavity)",
|
||||
"body_count": 1,
|
||||
"shells": 2,
|
||||
"volume_mm3": 14400.0,
|
||||
"area_mm2": 4650.0,
|
||||
"faces": 12,
|
||||
"edges": 24,
|
||||
"vertices": 16
|
||||
}
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4139",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"boolean Union: no result\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4093",
|
||||
"why": "reproduction script cut off in the source (a 3-turn guided thread sweep cut; the generator stops mid-way) and the run takes about 48 s, over the case budget"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4092",
|
||||
"why": "reproduction JSON cut off in the source (the 50-command script stops mid-way, rib shapes not given in the text)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4037",
|
||||
"why": "empty report: the loft failure arrived with no content"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4006",
|
||||
"why": "other area: import (STEP export of a revolve written as a cone of semi-angle pi/2; the revolve itself is right, and the import rig holds this as 4006-plane-written-as-cone-of-nearly-right-angle)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#4005",
|
||||
"why": "other area: import (STEP export writes a cylinder as a cone of semi-angle 8e-12; the revolve itself is right, and the import rig holds this as 4005-cylinder-written-as-near-zero-cone)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3960",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"boolean Union: no result\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3837",
|
||||
"why": "not geometry: exploded view steps, easing and trail lines (assembly presentation)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3806",
|
||||
"why": "other area: import (IGES surface of revolution of an arc read as a whole sphere; held by the import rig as 3806-iges-revolved-arc-spherical-cap-dome)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3790",
|
||||
"why": "feature request: square and triangular pipe sections, no geometry to grade (the pipe takes a circular section only)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3781",
|
||||
"why": "UI feature request: a target-body picker in the Extrude, Sweep and Revolve dialogs (the command already takes targets, held by the loft targets case 271)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3752",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"boolean Union: no result\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3726",
|
||||
"why": "UI: the dialog was opened with no sections picked (\"select the sections, one sketch each first\"); no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3724",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"boolean Union: no result\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3717",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"boolean Union: no result\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3697",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join, \"unexpected result\" with only a screenshot)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3691",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (a 90 degree revolve joined to the bottom of a letter L; the design is only in an attached file)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3636",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (coil join, Union no result; the target body is not given and the pitch was typed with a decimal comma)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3635",
|
||||
"why": "feature request: start and end conditions for extrude, hole and loft; no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3545",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3433",
|
||||
"why": "not geometry: GPU path tracer shader cache"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3308",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (loft join of two sketches)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3241",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3215",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (a 15-profile revolve cut that runs for minutes)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3076",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve join of three profiles against a body with 29 curved faces)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3063",
|
||||
"why": "UI: the dialog was opened with no sections picked; the reporter wants a spline loft that is not described"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2993",
|
||||
"why": "not reproduced and no geometry: a circle swept along a fit-point spline follows the path on current builds; the design with the failing sketch placement was not attached"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2990",
|
||||
"why": "other area: shell (shelling a loft; held by the shell rig as 3669-shell-lofted-square-frustum)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2954",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (twisted annular sweep cut; the design was lost)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2883",
|
||||
"why": "UI: the dialog was opened with no profiles picked (\"select profiles of two or more sketches first\"); working as designed"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2816",
|
||||
"why": "not reproduced and no geometry: a surface sweep that went the opposite way from the path; the sketches were not attached (the sweep starts at the path end nearest the profile)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2811",
|
||||
"why": "other area: fillets (performance of filleting many rib roots)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2802",
|
||||
"why": "UI: leave sketch mode when Extrude starts; no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2747",
|
||||
"why": "no geometry: \"revolve does not work on a selected face of a cube\" with no axis or dimensions; a face profile has no axis lying in its plane to revolve about"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2673",
|
||||
"why": "tessellation: artefacts on the arc of a revolved half pill seen in a screenshot, with no dimensions that fix the sketch (display is owned elsewhere)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2656",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (sweep cut along an arc and a line)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2576",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (loft join of two sketches)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2515",
|
||||
"why": "empty report: no body, no parameters, no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2442",
|
||||
"why": "empty report: the sweep failure arrived with no content"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2350",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (crash while running a 5-section loft join named RainRidge; sketches not given)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2333",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (a 5 degree symmetric revolve join to skin a hole in a cylinder; no dimensions)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2216",
|
||||
"why": "UI: an edge cannot be picked as a sweep path (\"select the path first\"); no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2004",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (revolve cut, \"implausible result volume 298.2432\")"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1988",
|
||||
"why": "UI: hidden bodies are joined by a loft join (visibility scoping of the join participants); the loft with explicit targets is held by case 271"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1775",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (loft cut of two sketches)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1402",
|
||||
"why": "no geometry: an auto-report with only the failing command's parameters (sketch and profile ids), no sketch, axis or body to rebuild from (sweep join of six profiles; design not attached)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1213",
|
||||
"why": "other area: fillets (a round or chamfer on the end circle of a bent lofted tube)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#442",
|
||||
"why": "other area: booleans (inspect.interference misses a 0.36 mm3 overlap with a small rib)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#171",
|
||||
"why": "not geometry: the CLI panics when its stdout pipe is closed"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3987",
|
||||
"why": "other area: import (revolve, sweep and loft joined to a part nested in a STEP assembly)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3901",
|
||||
"why": "other area: import (STEP conformance parts, cones to a point)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3880",
|
||||
"why": "other area: import (STEP conformance regression sweep)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3840",
|
||||
"why": "not geometry: the pull request for the exploded view steps (#3837)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3818",
|
||||
"why": "other area: tessellation (hovering a long helical edge)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3813",
|
||||
"why": "other area: import (the fix for #3806, IGES revolved arc)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3318",
|
||||
"why": "other area: booleans (symmetric through-all lens cut on a revolved ring that shares its outline cylinder; the reproduction is an example file not given in the report)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2815",
|
||||
"why": "UI: the pull request finishing the sketch when Extrude or Revolve starts"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2791",
|
||||
"why": "other area: booleans (lens-profile cut into a revolved quarter sphere; the profile is not given in the report)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2486",
|
||||
"why": "other area: shell (shelling revolved barrels; held by the shell rig)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2276",
|
||||
"why": "not geometry: inspect.parameter_sweep checks a design over a parameter range (a design-check command, not a sweep feature)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#2242",
|
||||
"why": "UI: the arc sweep value box covered the end-point pick (the sketch arc \"sweep\", not a solid sweep)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1981",
|
||||
"why": "not geometry: joint sweep (driving an assembly joint), not a solid sweep"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1928",
|
||||
"why": "other area: import (STEP export of revolved faces scaled across their axis)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1555",
|
||||
"why": "not geometry: headless pictures on the GPU"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1496",
|
||||
"why": "other area: import (STEP export of shelled revolved bodies)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1099",
|
||||
"why": "not geometry: startup crash on D3D12, tessellation pipeline fallback"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#709",
|
||||
"why": "UI: unit labels in the primitive dialogs"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#705",
|
||||
"why": "UI: Extrude and Revolve leave the Profiles field empty when the last sketch is used"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#536",
|
||||
"why": "not geometry: inspect.interference pruning for large body counts"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#407",
|
||||
"why": "not geometry: component placement frames when an extrude or revolve uses a sketch of another component (assembly)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#174",
|
||||
"why": "not geometry: the fix for the closed stdout pipe panic (#171)"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#85",
|
||||
"why": "not geometry: batch rollback and deleting a sketch removes its pipe (document history)"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#1995"
|
||||
],
|
||||
"what": "an M8x1 modelled thread in a 7 mm hole through a block (the report: the thread also changed the block's outer surface and made too many faces)",
|
||||
"source": "analytic",
|
||||
"method": "ISO 68-1 basic profile: H = P sqrt3/2, basic depth 5H/8. Internal groove: P/8 wide at the major radius d/2, widening by 2 tan30 per unit of radius toward the axis (3P/4 at the minor radius d/2 - 5H/8 = 3.4587), cut only where there is material (r >= hole radius 3.5). Volume per turn = 2 pi * integral from 3.5 to 4 of (P/8 + 2 tan30 (4 - r)) r dr = 4.79792 mm3 for P=1. Block 20x20x10 with a 7 mm through hole (rho=3.5), M8x1 over the full 10 mm (10 turns, both ends free): V = 4000 - pi 3.5^2 10 - 10 x 4.79792 = 3567.1757 mm3. The outer surface is untouched: the bbox stays the block's 20x20x10 and COM stays on the axis at z=5. Tolerance 1%: a modelled thread is a faceted helical solid (radial chord error up to 1% of the pitch on every wall).",
|
||||
"outcome": "solid",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 3567.1757,
|
||||
"center_of_mass": [
|
||||
0,
|
||||
0,
|
||||
5.0
|
||||
],
|
||||
"tolerance": {
|
||||
"rel": 0.01
|
||||
},
|
||||
"bbox": {
|
||||
"min": [
|
||||
-10,
|
||||
-10,
|
||||
0
|
||||
],
|
||||
"max": [
|
||||
10,
|
||||
10,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"corner": [
|
||||
-10,
|
||||
-10,
|
||||
0
|
||||
],
|
||||
"length": 20,
|
||||
"width": 20,
|
||||
"height": 10,
|
||||
"body_name": "Block"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "solid.hole",
|
||||
"params": {
|
||||
"position": [
|
||||
0,
|
||||
0,
|
||||
10
|
||||
],
|
||||
"diameter": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "solid.thread",
|
||||
"params": {
|
||||
"face": [
|
||||
3.5,
|
||||
0,
|
||||
5.0
|
||||
],
|
||||
"designation": "M8x1",
|
||||
"modeled": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#3368"
|
||||
],
|
||||
"what": "booleans of a finely faceted body (a 1200-sided prism, 1202 flat faces, the kind of body a modelled thread leaves) with box tools: they must finish in bounded time with the exact result, not run for minutes",
|
||||
"source": "analytic",
|
||||
"method": "A regular N-gon of circumradius R (one vertex on +x) has area N/2 R^2 sin(2 pi/N). Plate: 1200-gon R=30, h=10: V0 = 600 * 900 * sin(0.3 deg) * 10 = 28274.2047. Cut: a 10x10 square pocket through the full thickness, entirely inside the plate: -10*10*10 = -1000. Join: a 12x12x5 box standing on the top face (z 10 to 15, x and y 8 to 20, inside the outline, touching the top face only in its base): +720. V = 27994.2047 mm3.",
|
||||
"outcome": "solid",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 27994.2047,
|
||||
"bbox": {
|
||||
"min": [
|
||||
-30,
|
||||
-30,
|
||||
0
|
||||
],
|
||||
"max": [
|
||||
30,
|
||||
30,
|
||||
15
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"commands":[{"command":"sketch.create","params":{"plane":{"origin":[0,0,0.0],"x_dir":[1,0,0],"y_dir":[0,1,0]}}},{"command":"sketch.line","params":{"points":[[30.0,0.0],[29.999588767,0.157078915],[29.998355081,0.314153523],[29.996298974,0.471219519],[29.993420504,0.628272597],[29.989719749,0.785308449],[29.985196811,0.942322772],[29.979851813,1.099311261],[29.973684903,1.256269612],[29.966696249,1.413193521],[29.958886043,1.570078687],[29.950254498,1.726920809],[29.940801853,1.883715586],[29.930528365,2.04045872],[29.919434317,2.197145914],[29.907520012,2.353772872],[29.894785777,2.5103353],[29.881231962,2.666828906],[29.866858938,2.8232494],[29.851667099,2.979592492],[29.835656861,3.135853898],[29.818828664,3.292029333],[29.801182968,3.448114515],[29.782720258,3.604105165],[29.763441039,3.759997007],[29.743345841,3.915785767],[29.722435214,4.071467173],[29.700709731,4.227036958],[29.678169989,4.382490857],[29.654816604,4.537824607],[29.630650218,4.693033951],[29.605671492,4.848114633],[29.579881112,5.003062401],[29.553279785,5.157873008],[29.525868239,5.31254221],[29.497647227,5.467065765],[29.468617522,5.621439438],[29.43877992,5.775658996],[29.408135239,5.929720211],[29.376684319,6.083618861],[29.344428022,6.237350725],[29.311367233,6.390911588],[29.277502858,6.544297242],[29.242835826,6.69750348],[29.207367086,6.850526103],[29.171097612,7.003360916],[29.134028397,7.156003727],[29.096160459,7.308450354],[29.057494834,7.460696615],[29.018032583,7.612738338],[28.977774789,7.764571353],[28.936722554,7.916191499],[28.894877004,8.067594618],[28.852239286,8.218776561],[28.80881057,8.369733181],[28.764592046,8.520460341],[28.719584926,8.670953908],[28.673790444,8.821209757],[28.627209855,8.971223768],[28.579844438,9.120991828],[28.531695489,9.270509831],[28.482764329,9.419773679],[28.4330523,9.568779279],[28.382560765,9.717522546],[28.331291107,9.865999402],[28.279244733,10.014205777],[28.226423069,10.162137607],[28.172827563,10.309790838],[28.118459685,10.45716142],[28.063320925,10.604245313],[28.007412795,10.751038486],[27.950736828,10.897536914],[27.893294577,11.043736581],[27.835087617,11.189633477],[27.776117544,11.335223605],[27.716385975,11.480502971],[27.655894548,11.625467594],[27.59464492,11.770113498],[27.532638771,11.914436719],[27.4698778,12.0584333],[27.406363729,12.202099292],[27.342098299,12.345430758],[27.277083271,12.488423768],[27.211320429,12.631074401],[27.144811574,12.773378747],[27.07755853,12.915332904],[27.009563142,13.056932981],[26.940827273,13.198175096],[26.871352807,13.339055376],[26.80114165,13.479569958],[26.730195726,13.619714992],[26.65851698,13.759486635],[26.586107377,13.898881054],[26.512968903,14.037894428],[26.439103562,14.176522946],[26.36451338,14.314762808],[26.289200401,14.452610223],[26.213166691,14.590061413],[26.136414334,14.727112608],[26.058945433,14.863760053],[25.980762114,15.0],[25.901866518,15.135828714],[25.82226081,15.271242473],[25.741947172,15.406237562],[25.660927805,15.540810281],[25.579204931,15.674956941],[25.49678079,15.808673865],[25.413657641,15.941957386],[25.329837765,16.074803849],[25.245323458,16.207209614],[25.160117038,16.33917105],[25.074220841,16.47068454],[24.987637221,16.601746477],[24.900368553,16.732353269],[24.812417228,16.862501336],[24.723785659,16.992187108],[24.634476274,17.121407031],[24.544491523,17.250157561],[24.453833872,17.37843517],[24.362505807,17.506236341],[24.270509831,17.633557569],[24.177848467,17.760395364],[24.084524256,17.886746249],[23.990539755,18.01260676],[23.895897541,18.137973446],[23.800600209,18.26284287],[23.704650371,18.38721161],[23.608050659,18.511076254],[23.51080372,18.634433408],[23.41291222,18.75727969],[23.314378844,18.879611731],[23.215206292,19.001426179],[23.115397283,19.122719692],[23.014954554,19.243488947],[22.913880859,19.363730632],[22.812178968,19.48344145],[22.70985167,19.60261812],[22.606901769,19.721257374],[22.503332089,19.83935596],[22.399145469,19.95691064],[22.294344764,20.073918191],[22.188932849,20.190375405],[22.082912614,20.30627909],[21.976286964,20.421626069],[21.869058823,20.536413178],[21.76123113,20.650637271],[21.652806843,20.764295216],[21.543788933,20.877383898],[21.434180389,20.989900215],[21.323984216,21.101841084],[21.213203436,21.213203436],[21.101841084,21.323984216],[20.989900215,21.434180389],[20.877383898,21.543788933],[20.764295216,21.652806843],[20.650637271,21.76123113],[20.536413178,21.869058823],[20.421626069,21.976286964],[20.30627909,22.082912614],[20.190375405,22.188932849],[20.073918191,22.294344764],[19.95691064,22.399145469],[19.83935596,22.503332089],[19.721257374,22.606901769],[19.60261812,22.70985167],[19.48344145,22.812178968],[19.363730632,22.913880859],[19.243488947,23.014954554],[19.122719692,23.115397283],[19.001426179,23.215206292],[18.879611731,23.314378844],[18.75727969,23.41291222],[18.634433408,23.51080372],[18.511076254,23.608050659],[18.38721161,23.704650371],[18.26284287,23.800600209],[18.137973446,23.895897541],[18.01260676,23.990539755Line truncated
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#3368"
|
||||
],
|
||||
"what": "a finely faceted body (a 1200-sided prism) with a curved partner: a vertical bore and a horizontal cross hole drilled through it (the case where the B-rep ladder is bounded but must still decide)",
|
||||
"source": "analytic",
|
||||
"method": "A regular N-gon of circumradius R (one vertex on +x) has area N/2 R^2 sin(2 pi/N). Plate: 1200-gon R=30, h=10: V0 = 28274.2047. Vertical bore R=5 at (-15,12), through the whole thickness, inside the outline: -pi*25*10 = -785.3982. Cross hole R=3 along x at y=0, z=5 (z 2..8, inside the thickness): it spans the polygon's full chord on the x axis, which is 2R = 60 because vertices sit at angles 0 and 180 deg: -pi*9*60 = -1696.4600 (the hole is clear of the bore: bore y 7..17, hole y -3..3). V = 25792.3465 mm3.",
|
||||
"outcome": "solid",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 25792.3465,
|
||||
"bbox": {
|
||||
"min": [
|
||||
-30,
|
||||
-30,
|
||||
0
|
||||
],
|
||||
"max": [
|
||||
30,
|
||||
30,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"commands":[{"command":"sketch.create","params":{"plane":{"origin":[0,0,0.0],"x_dir":[1,0,0],"y_dir":[0,1,0]}}},{"command":"sketch.line","params":{"points":[[30.0,0.0],[29.999588767,0.157078915],[29.998355081,0.314153523],[29.996298974,0.471219519],[29.993420504,0.628272597],[29.989719749,0.785308449],[29.985196811,0.942322772],[29.979851813,1.099311261],[29.973684903,1.256269612],[29.966696249,1.413193521],[29.958886043,1.570078687],[29.950254498,1.726920809],[29.940801853,1.883715586],[29.930528365,2.04045872],[29.919434317,2.197145914],[29.907520012,2.353772872],[29.894785777,2.5103353],[29.881231962,2.666828906],[29.866858938,2.8232494],[29.851667099,2.979592492],[29.835656861,3.135853898],[29.818828664,3.292029333],[29.801182968,3.448114515],[29.782720258,3.604105165],[29.763441039,3.759997007],[29.743345841,3.915785767],[29.722435214,4.071467173],[29.700709731,4.227036958],[29.678169989,4.382490857],[29.654816604,4.537824607],[29.630650218,4.693033951],[29.605671492,4.848114633],[29.579881112,5.003062401],[29.553279785,5.157873008],[29.525868239,5.31254221],[29.497647227,5.467065765],[29.468617522,5.621439438],[29.43877992,5.775658996],[29.408135239,5.929720211],[29.376684319,6.083618861],[29.344428022,6.237350725],[29.311367233,6.390911588],[29.277502858,6.544297242],[29.242835826,6.69750348],[29.207367086,6.850526103],[29.171097612,7.003360916],[29.134028397,7.156003727],[29.096160459,7.308450354],[29.057494834,7.460696615],[29.018032583,7.612738338],[28.977774789,7.764571353],[28.936722554,7.916191499],[28.894877004,8.067594618],[28.852239286,8.218776561],[28.80881057,8.369733181],[28.764592046,8.520460341],[28.719584926,8.670953908],[28.673790444,8.821209757],[28.627209855,8.971223768],[28.579844438,9.120991828],[28.531695489,9.270509831],[28.482764329,9.419773679],[28.4330523,9.568779279],[28.382560765,9.717522546],[28.331291107,9.865999402],[28.279244733,10.014205777],[28.226423069,10.162137607],[28.172827563,10.309790838],[28.118459685,10.45716142],[28.063320925,10.604245313],[28.007412795,10.751038486],[27.950736828,10.897536914],[27.893294577,11.043736581],[27.835087617,11.189633477],[27.776117544,11.335223605],[27.716385975,11.480502971],[27.655894548,11.625467594],[27.59464492,11.770113498],[27.532638771,11.914436719],[27.4698778,12.0584333],[27.406363729,12.202099292],[27.342098299,12.345430758],[27.277083271,12.488423768],[27.211320429,12.631074401],[27.144811574,12.773378747],[27.07755853,12.915332904],[27.009563142,13.056932981],[26.940827273,13.198175096],[26.871352807,13.339055376],[26.80114165,13.479569958],[26.730195726,13.619714992],[26.65851698,13.759486635],[26.586107377,13.898881054],[26.512968903,14.037894428],[26.439103562,14.176522946],[26.36451338,14.314762808],[26.289200401,14.452610223],[26.213166691,14.590061413],[26.136414334,14.727112608],[26.058945433,14.863760053],[25.980762114,15.0],[25.901866518,15.135828714],[25.82226081,15.271242473],[25.741947172,15.406237562],[25.660927805,15.540810281],[25.579204931,15.674956941],[25.49678079,15.808673865],[25.413657641,15.941957386],[25.329837765,16.074803849],[25.245323458,16.207209614],[25.160117038,16.33917105],[25.074220841,16.47068454],[24.987637221,16.601746477],[24.900368553,16.732353269],[24.812417228,16.862501336],[24.723785659,16.992187108],[24.634476274,17.121407031],[24.544491523,17.250157561],[24.453833872,17.37843517],[24.362505807,17.506236341],[24.270509831,17.633557569],[24.177848467,17.760395364],[24.084524256,17.886746249],[23.990539755,18.01260676],[23.895897541,18.137973446],[23.800600209,18.26284287],[23.704650371,18.38721161],[23.608050659,18.511076254],[23.51080372,18.634433408],[23.41291222,18.75727969],[23.314378844,18.879611731],[23.215206292,19.001426179],[23.115397283,19.122719692],[23.014954554,19.243488947],[22.913880859,19.363730632],[22.812178968,19.48344145],[22.70985167,19.60261812],[22.606901769,19.721257374],[22.503332089,19.83935596],[22.399145469,19.95691064],[22.294344764,20.073918191],[22.188932849,20.190375405],[22.082912614,20.30627909],[21.976286964,20.421626069],[21.869058823,20.536413178],[21.76123113,20.650637271],[21.652806843,20.764295216],[21.543788933,20.877383898],[21.434180389,20.989900215],[21.323984216,21.101841084],[21.213203436,21.213203436],[21.101841084,21.323984216],[20.989900215,21.434180389],[20.877383898,21.543788933],[20.764295216,21.652806843],[20.650637271,21.76123113],[20.536413178,21.869058823],[20.421626069,21.976286964],[20.30627909,22.082912614],[20.190375405,22.188932849],[20.073918191,22.294344764],[19.95691064,22.399145469],[19.83935596,22.503332089],[19.721257374,22.606901769],[19.60261812,22.70985167],[19.48344145,22.812178968],[19.363730632,22.913880859],[19.243488947,23.014954554],[19.122719692,23.115397283],[19.001426179,23.215206292],[18.879611731,23.314378844],[18.75727969,23.41291222],[18.634433408,23.51080372],[18.511076254,23.608050659],[18.38721161,23.704650371],[18.26284287,23.800600209],[18.137973446,23.895897541],[18.01260676,23.990539755Line truncated
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"sources": [
|
||||
"tangency-labs/solidcraft#3368"
|
||||
],
|
||||
"what": "two finely faceted bodies (1000-sided prisms, flat faces only): a faceted stud cut out of a faceted disc, then a faceted cap joined on top touching in a plane; both booleans must finish in bounded time with the exact result",
|
||||
"source": "analytic",
|
||||
"method": "A regular N-gon of circumradius R (one vertex on +x) has area N/2 R^2 sin(2 pi/N). Disc: 1000-gon R=30, h=10 (z 0..10). Stud: 1000-gon R=6, z -2..12, coaxial with the same vertex angles, so it removes its 10 mm inside the disc: -A6*10. Cap: 1000-gon R=20, z 10..14, touching the disc's top face in a plane and covering the hole's top (the hole stays open at the bottom, no sealed void): +A20*4. V = 500*sin(0.36 deg)*(900*10 - 36*10 + 400*4) = 32169.6971 mm3.",
|
||||
"outcome": "solid",
|
||||
"body_count": 1,
|
||||
"volume_mm3": 32169.6971,
|
||||
"bbox": {
|
||||
"min": [
|
||||
-30,
|
||||
-30,
|
||||
0
|
||||
],
|
||||
"max": [
|
||||
30,
|
||||
30,
|
||||
14
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"commands":[{"command":"sketch.create","params":{"plane":{"origin":[0,0,0.0],"x_dir":[1,0,0],"y_dir":[0,1,0]}}},{"command":"sketch.line","params":{"points":[[30.0,0.0],[29.999407826,0.188494319],[29.997631326,0.376981197],[29.994670571,0.565453191],[29.990525678,0.753902863],[29.985196811,0.942322772],[29.978684179,1.13070548],[29.97098804,1.31904355],[29.962108698,1.507329545],[29.952046503,1.695556034],[29.940801853,1.883715586],[29.928375191,2.071800771],[29.914767008,2.259804166],[29.899977841,2.447718347],[29.884008274,2.635535897],[29.866858938,2.8232494],[29.848530509,3.010851446],[29.829023712,3.198334628],[29.808339316,3.385691546],[29.786478137,3.572914803],[29.763441039,3.759997007],[29.739228932,3.946930773],[29.713842771,4.133708721],[29.687283558,4.320323477],[29.659552342,4.506767674],[29.630650218,4.693033951],[29.600578326,4.879114956],[29.569337854,5.065003341],[29.536930036,5.250691769],[29.50335615,5.436172909],[29.468617522,5.621439438],[29.432715523,5.806484042],[29.395651572,5.991299415],[29.35742713,6.175878263],[29.318043707,6.360213298],[29.277502858,6.544297242],[29.235806184,6.728122828],[29.192955329,6.9116828],[29.148951987,7.094969911],[29.103797895,7.277976924],[29.057494834,7.460696615],[29.010044633,7.643121771],[28.961449165,7.825245189],[28.911710349,8.00705968],[28.860830148,8.188558066],[28.80881057,8.369733181],[28.755653671,8.550577874],[28.701361547,8.731085005],[28.645936342,8.911247447],[28.589380246,9.091058089],[28.531695489,9.270509831],[28.47288435,9.44959559],[28.41294915,9.628308294],[28.351892255,9.80664089],[28.289716077,9.984586336],[28.226423069,10.162137607],[28.16201573,10.339287695],[28.096496602,10.516029606],[28.029868274,10.692356361],[27.962133374,10.868261001],[27.893294577,11.043736581],[27.8233546,11.218776172],[27.752316205,11.393372866],[27.680182196,11.567519768],[27.606955421,11.741210005],[27.532638771,11.914436719],[27.457235179,12.087193071],[27.380747622,12.259472242],[27.303179121,12.43126743],[27.224532736,12.602571852],[27.144811574,12.773378747],[27.064018781,12.94368137],[26.982157547,13.113473],[26.899231104,13.282746931],[26.815242725,13.451496483],[26.730195726,13.619714992],[26.644093464,13.787395819],[26.55693934,13.954532342],[26.468736793,14.121117965],[26.379489306,14.28714611],[26.289200401,14.452610223],[26.197873644,14.617503772],[26.10551264,14.781820246],[26.012121035,14.94555316],[25.917702516,15.108696049],[25.82226081,15.271242473],[25.725799686,15.433186013],[25.628322951,15.594520279],[25.529834454,15.755238899],[25.430338083,15.915335529],[25.329837765,16.074803849],[25.228337469,16.233637564],[25.125841201,16.391830402],[25.022353008,16.549376119],[24.917876976,16.706268495],[24.812417228,16.862501336],[24.705977929,17.018068474],[24.59856328,17.172963768],[24.490177522,17.327181103],[24.380824933,17.48071439],[24.270509831,17.633557569],[24.159236571,17.785704605],[24.047009546,17.937149492],[23.933833186,18.087886251],[23.819711959,18.237908931],[23.704650371,18.38721161],[23.588652964,18.535788393],[23.471724317,18.683633415],[23.353869047,18.830740839],[23.235091806,18.977104857],[23.115397283,19.122719692],[22.994790204,19.267579595],[22.87327533,19.411678847],[22.750857459,19.555011759],[22.627541422,19.697572673],[22.503332089,19.83935596],[22.378234363,19.980356023],[22.252253182,20.120567296],[22.125393521,20.259984244],[21.997660387,20.398601362],[21.869058823,20.536413178],[21.739593906,20.673414252],[21.609270747,20.809599174],[21.478094491,20.94496257],[21.346070316,21.079499094],[21.213203436,21.213203436],[21.079499094,21.346070316],[20.94496257,21.478094491],[20.809599174,21.609270747],[20.673414252,21.739593906],[20.536413178,21.869058823],[20.398601362,21.997660387],[20.259984244,22.125393521],[20.120567296,22.252253182],[19.980356023,22.378234363],[19.83935596,22.503332089],[19.697572673,22.627541422],[19.555011759,22.750857459],[19.411678847,22.87327533],[19.267579595,22.994790204],[19.122719692,23.115397283],[18.977104857,23.235091806],[18.830740839,23.353869047],[18.683633415,23.471724317],[18.535788393,23.588652964],[18.38721161,23.704650371],[18.237908931,23.819711959],[18.087886251,23.933833186],[17.937149492,24.047009546],[17.785704605,24.159236571],[17.633557569,24.270509831],[17.48071439,24.380824933],[17.327181103,24.490177522],[17.172963768,24.59856328],[17.018068474,24.705977929],[16.862501336,24.812417228],[16.706268495,24.917876976],[16.549376119,25.022353008],[16.391830402,25.125841201],[16.233637564,25.228337469],[16.074803849,25.329837765],[15.915335529,25.430338083],[15.755238899,25.529834454],[15.594520279,25.628322951],[15.433186013,25.725799686],[15.271242473,25.82226081],[15.108696049,25.917702516],[14.94555316,26.012121035],[14.781820246,26.10551264],[14.617503772,26.197873644],[14.452610223,26.289200401],[14.28714611,26.379489306],[14.121117965,26.468736793],[13.954532342,26.55693934],[13.787395819,26.644093464],[13.619714992,26.730195726],[13.451496483,26.815242725],[Line truncated
|
||||
@@ -226,5 +226,17 @@
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#1020",
|
||||
"why": "CPU or window threads (off-thread evaluation, freezes), not modelled threads: no geometry"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#987",
|
||||
"why": "auto-report with a fillet's four edge picks and a screenshot only ('a ghost in the thread creation'): no design, no thread parameters, nothing to rebuild or compute"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3130",
|
||||
"why": "auto-report with command parameters only (an M5 drilled hole at a point the comment reads as off the part): no design; a drilled M5 hole in a block works, so there is no geometry to grade"
|
||||
},
|
||||
{
|
||||
"source": "tangency-labs/solidcraft#3824",
|
||||
"why": "auto-report with command parameters only (an M5 drilled hole from sketch point 8, failing 'no cylindrical face there to thread'): the sketch's face is not in the report, and a drilled M5 hole from a point on a flat block face works"
|
||||
}
|
||||
]
|
||||
@@ -26,6 +26,8 @@ struct Options {
|
||||
area: Option<String>,
|
||||
timeout: Duration,
|
||||
jobs: usize,
|
||||
/// Where to keep every case's full result as JSON.
|
||||
results: Option<String>,
|
||||
}
|
||||
|
||||
fn options(rest: &[&str]) -> Result<Options, String> {
|
||||
@@ -38,7 +40,7 @@ fn options(rest: &[&str]) -> Result<Options, String> {
|
||||
};
|
||||
let secs = arg("--timeout").map(|t| t.parse::<u64>().map_err(|e| format!("--timeout: {e}"))).transpose()?.unwrap_or(DEFAULT_TIMEOUT_S);
|
||||
let jobs = arg("--jobs").map(|j| j.parse::<usize>().map_err(|e| format!("--jobs: {e}"))).transpose()?.unwrap_or(4).clamp(1, 32);
|
||||
Ok(Options { kernels, cli: arg("--cli"), area: arg("--area"), timeout: Duration::from_secs(secs), jobs })
|
||||
Ok(Options { kernels, cli: arg("--cli"), area: arg("--area"), timeout: Duration::from_secs(secs), jobs, results: arg("--results") })
|
||||
}
|
||||
|
||||
fn read(path: &Path) -> Value {
|
||||
@@ -323,6 +325,10 @@ pub fn run(rest: &[&str]) -> Result<(), String> {
|
||||
return Err(format!("no cases (recipe.json + expected.json) under {}", dir.display()));
|
||||
}
|
||||
let results = run_all(&o, &list);
|
||||
if let Some(path) = &o.results {
|
||||
let text = serde_json::to_string_pretty(&results).map_err(|e| e.to_string())?;
|
||||
std::fs::write(path, text).map_err(|e| format!("{path}: {e}"))?;
|
||||
}
|
||||
println!("{}", write_report(&o, &dir, &list, &results)?);
|
||||
Ok(())
|
||||
}
|
||||
+3
-2
@@ -46,10 +46,11 @@ commands:
|
||||
replay the reference tests (tests/oracle/*/recipe.json), compare with each
|
||||
case's expected.json and write docs/oracle.md (--cli: a solidcraft-cli
|
||||
already built, instead of cargo run --release)
|
||||
kernel-cases [--kernel default|smlib|both] [--area AREA] [--cli BIN] [--timeout S] [--jobs N]
|
||||
kernel-cases [--kernel default|smlib|both] [--area AREA] [--cli BIN] [--timeout S] [--jobs N] [--results FILE]
|
||||
the kernel regression rig: run every case in tests/kernel-cases/<area>/<id>/ (one
|
||||
process each, killed after --timeout, default 180 s) with each kernel asked for,
|
||||
grade it against the case's own answer and write docs/kernel-cases.md
|
||||
grade it against the case's own answer and write docs/kernel-cases.md (--results:
|
||||
every result as JSON too)
|
||||
action-matrix [--bless] [--results FILE] [--from DIR]
|
||||
try every ordinary action on every face, edge, vertex and body of the design
|
||||
corpus and compare with tests/action_matrix/baseline.json (--bless rewrites it;
|
||||
|
||||
Reference in new issue
Block a user